All Digital Rewards API Class

1.4.0 2018-07-02 21:23 UTC

README

Package is available on Packagist, you can install it using Composer.

composer require alldigitalrewards/rewards

PHP 5.5+

Usage

$endpoint = 'http://marketplace.alldigitalrewards.com';
$apiUser = 'demouser';
$apiKey = 'examplekey';

$reward = new \ADR\Rewards($endpoint, $apiUser, $apiKey);

var_dump(json_decode($reward->getRedemptionCampaigns()));