PHP code example of inserve / td-synnex-stream-one-api-php

1. Go to this page and download the library: Download inserve/td-synnex-stream-one-api-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

inserve / td-synnex-stream-one-api-php example snippets




use Inserve\StreamOneAPI\StreamOneAPIClient;

i->refreshToken('refresh.token');

if (! $accessToken) {
    echo 'Failed to obtain new access token.';

    return;
}

$customers = $api->customer->list(123);