袋鼠积分/袋鼠积分-PHP-SDK

v2.0.0 2019-10-08 17:21 UTC

This package is auto-updated.

Last update: 2024-09-28 05:01:25 UTC


README

Build Status Latest Version Software License

要求

以下版本的 PHP 被支持。

  • PHP 5.6

安装

将以下内容添加到您的 composer.json 文件中。

{
    "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();

致谢

许可证

MIT 许可证 (MIT)。更多信息请参阅 许可证文件