This is an ADR RewardStack SDK
Via Composer
$ composer require alldigitalrewards/rewardstack
<?php
require __DIR__ . '/vendor/autoload.php';
$credentials = new \AllDigitalRewards\RewardStack\Auth\Credentials(
'username',
'password'
);
$uri = new \GuzzleHttp\Psr7\Uri('https://admin.qa.alldigitalrewards.com');
$httpClient = new \GuzzleHttp\Client();
$authProxy = new \AllDigitalRewards\RewardStack\Auth\AuthProxy($credentials, $uri, $httpClient);
$client = new \AllDigitalRewards\RewardStack\Client($authProxy);
<?php
$participantRequest = new \AllDigitalRewards\RewardStack\Request\ParticipantRequest('TESTPARTICIPANT1');
$participant = $client->request($participantRequest);
$ composer test