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

TD Synnex Stream One API(v3)的PHP包装器

0.1.2 2024-06-06 14:00 UTC

This package is auto-updated.

Last update: 2024-09-30 14:35:41 UTC


README

PHP Version Require

状态

workflow Latest Stable Version Latest Unstable Version License

关于

TD Synnex Stream One API的PHP包装器 (https://www.tdsynnex.com/ion/v3api)

安装

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