Via Composer
$ composer require lenius/economic-php-client
Please see the official e-conomic documentation.
Call the Customers url /Customers
$appToken = 'demo';
$grant = 'demo';
$client = new Lenius\Economic\RestClient($appToken, $grant);
$parms = ['pagesize' => 100];
$response = $client->request->get('customers', $parms);
$status = $response->httpStatus();
if ($status == 200) {
// Successful request
$data = $response->asArray();
print_r($data);
}
$ composer test
All PR's are welcome, just throw me one, and i take a look at it :)
This code is release under the MIT License, which means you can do pretty much whatever you wanna do with it. Take a look at the LICENSE file for more information.
This packages is originally developed and maintained by Carsten Jonstrup.