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

A PHP wrapper for the TD Synnex Stream One API (v3)

0.1.1 2024-05-01 07:57 UTC

This package is auto-updated.

Last update: 2024-05-01 07:58:40 UTC


README

PHP Version Require

Status

workflow Latest Stable Version Latest Unstable Version License

About

A PHP Wrapper for TD Synnex Stream One API

Installation

composer require inserve/td-synnex-stream-one-api-php

Usage example

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