lenius/economic-php-client

PHP-SDK to communicate with E-Conomic

v1.0.1 2016-07-21 21:05 UTC

README

Build Status StyleCI Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License

https://restdocs.e-conomic.com

Access all debitors

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();

print_r($status);
if( $status == 200 ) {
    // Successful request
    $data = $response->asArray();
    print_r($data);
}