alldigitalrewards / rewardstack
RewardStack SDK
Installs: 1 609
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
- alldigitalrewards/country-mapper: ^1.10
- alldigitalrewards/language-mapper: ^1|^2
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^7.0|^8|^9.0
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.0
- dev-master
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.1
- 5.0.0
- 4.1.0
- 4.0.0
- v3.x-dev
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.10.0
- 2.9.0
- 2.8.1
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21
- 1.20
- 1.19
- 1.18
- 1.17
- 1.16
- 1.15
- 1.14
- 1.13
- 1.12.0
- 1.11.1
- 1.11.0
- 1.10.0
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-DS-11113
- dev-DS-11019
- dev-DS-10963-remove-version
- dev-DS-10963
- dev-DS-10606
- dev-DS-10476
- dev-DS-10153
- dev-DS-5108
- dev-DS-4890
- dev-DS-4744
- dev-DS-4707
- dev-DS-4426
- dev-DS-4353_bugfix-time-comparison
- dev-DS-4353_add-metrics
- dev-DS-4353
- dev-DS-4207-v2
- dev-DS-4207
- dev-DS-4222
- dev-DS-4163
- dev-DS-2115-v2
- dev-DS-2115
- dev-DS-4052
- dev-DS-4048
- dev-DS-3967
- dev-DS-3903
- dev-DS-3828-v2
- dev-DS-3828
- dev-DS-3867-v2
- dev-DS-3867
- dev-DS-3807
- dev-DS-3790-v2
- dev-DS-3790
- dev-DS-3684-v5
- dev-DS-3684-v4
- dev-DS-3684-v3
- dev-DS-3684-v2
- dev-DS-3684
- dev-DS-3543
- dev-DS-3572
- dev-DS-3098
- dev-DS-3262
- dev-DS-3261
- dev-DS-3250-v2
- dev-DS-3250
- dev-IPS-425-fix-response
- dev-IPS-429-fix-response
- dev-IPS-425
- dev-IPS-429-language-mapper
- dev-IPS-429
- dev-DS-3213
- dev-DS-3140-add-country-mapper
- dev-DS-3140-extend-authproxy-token-get
- dev-DS-3140-transaction-create
- dev-DS-3140-program-attribute
- dev-DS-3140-participant-put
- dev-DS-3140-v2
- dev-DS-3140
- dev-DS-3139
- dev-DS-2890-fix-queryparam
- dev-DS-2890
- dev-DS-2638
- dev-Adding-php-unit-test-workflow
- dev-KIA-334_support-PHP8
- dev-KIA-334
- dev-DS-2655
- dev-DS-2654
This package is auto-updated.
Last update: 2024-11-14 21:42:01 UTC
README
This is an ADR RewardStack SDK
Install
Via Composer
$ composer require alldigitalrewards/rewardstack
Usage
Bootstrap
<?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);
Get a Participant
<?php $participantRequest = new \AllDigitalRewards\RewardStack\Request\ParticipantRequest('TESTPARTICIPANT1'); $participant = $client->request($participantRequest);
Testing
$ composer test