You may also be interested in our WordPress plugin which uses this client.
$key = '<API Key>';
$bup = new BadgeUp\Client($key);
$allAchievements = $bup->getAchievements()->wait();
var_dump($allAchievements); // prints the list of achievements
Retrieves an achievement by ID.
Retrieves an array of achievements.
Retrieves a list of earned achievements.
Creates a single event, returning the event and earned achievement progress records for any achievement affected.
Unit tests are written for PHPUnit
- Install and Configure PHPUnit (https://phpunit.de/getting-started.html)
- Run 'phpunit' from the project's root directory