The following versions of PHP are supported.
- PHP 5.6
Add the following to your composer.json
file.
{
"require": {
"kangaroorewards/KangarooRewards-PHP-SDK": "~1.0"
}
}
$api = new KangarooApi([
'access_token' => {ACCESS_TOKEN},
]);
$resourceOwner = $api->me();
$customer = $api->getCustomer({CUSTOMER_ID}, ['include' => ['balance']]);
$offers = $api->getOffers();
The MIT License (MIT). Please see License File for more information.