A PHP Wrapper for TD Synnex Stream One API
composer require inserve/td-synnex-stream-one-api-php
<?php
use Inserve\StreamOneAPI\StreamOneAPIClient;
require 'vendor/autoload.php';
$api = new StreamOneAPIClient();
$accessToken = $api->refreshToken('refresh.token');
if (! $accessToken) {
echo 'Failed to obtain new access token.';
return;
}
$customers = $api->customer->list(123);