Previously on PHP Client of Utopian API, you see how beautiful the PHP is when it comes to wrap utopian APIs. And I am feeling excited to introduce a sub-class Moderators that extends the Utopian base API class.
What is the project about?
The project is to wrap the public utopian APIs in PHP Class. I have seen @emrebeyler 's contribution on Python client, so I think it is a good idea to provide a PHP implementation.
Technology Stack
PHP 7.0
Roadmap
The next release will be adding more unit tests and more about moderators in terms of rewards, payout etc.
How to contribute?
Github: https://github.com/DoctorLai/utopian-api-php-client
This will re-fetch the data from Utopian API.
$moderators->Reload();
$moderators->GetRawData();
print_r($moderators->GetList());
echo "there are " . $moderators->GetTotal() . " moderators.";
$justyy = $moderators->GetModerator('justyy');
print_r($justyy);
echo "Total Paid Rewards: " . $moderators->GetTotalPaidRewards();
echo "Should Receive Total: " . $moderators->GetShouldReceiveRewards();
echo "Total Moderated Count: " . $moderators->GetTotalModerated();
echo "Steem: " . $moderators->GetTotalPaidRewardsSteem();
foreach ($moderators->GetListOfSuperModerators() as $acc) {
echo "Boss: " . $acc;
}
foreach ($moderators->GetListOfApprentice() as $acc) {
echo "Student: " . $acc;
}
foreach ($moderators->GetListOfBannedModerators() as $acc) {
echo "Banned: " . $acc;
}
foreach ($moderators->GetListOfActiveModerators() as $acc) {
echo "Active: " . $acc;
}