noshpos / apiwrapper
This library wraps the NoshPOS API and allows you to retrieve paginated basic data from NoshPOS.
1.2.23
2019-01-25 01:43 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: 6.2.*
- symfony/config: 3.*
- symfony/serializer: 3.*
Requires (Dev)
- mockery/mockery: 0.9
- phpunit/phpunit: 5.6.*
- squizlabs/php_codesniffer: 2.7.*
README
This library wraps the NoshPOS API and allows you to retrieve paginated basic data from NoshPOS.
Requirements
Installation
- Add the wrapper to your composer.json and run
composer install
- Load the wrapper namespace in your code:
use NoshPOS\APIWrapper
- Instantiate the API wrapper:
$noshpos = new NoshPOS($clientId, $clientSecret, $url)
Usage
- Instantiate a
NoshPOS
API wrapper object, pass along your client id and secret. $noshPOS->customers()->get($pageSize, $pageIndex)
. By passing page size 1 and index 0, the wrapper would return one customer.
Example Implementation
See example/
directory.
Unit Tests
Run vendor/bin/phpunit
on the tests
directory to execute the test suite.
Credits
First version of this wrapper written by John Jensen, with help from Celso Fernandes.