Skip to content

kangaroorewards/KangarooRewards-PHP-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kangaroo Rewards REST API Client for PHP

Build Status Latest Version Software License

Requirements

The following versions of PHP are supported.

  • PHP 5.6

Installation

Add the following to your composer.json file.

{
    "require": {
        "kangaroorewards/KangarooRewards-PHP-SDK": "~1.0"
    }
}

Usage

$api = new KangarooApi([
    'access_token' => {ACCESS_TOKEN},
]);

$resourceOwner = $api->me();

$customer = $api->getCustomer({CUSTOMER_ID}, ['include' => ['balance']]); 

$offers = $api->getOffers();

Credits

License

The MIT License (MIT). Please see License File for more information.