inserve / td-synnex-stream-one-api-php
TD Synnex Stream One API(v3)的PHP包装器
0.1.2
2024-06-06 14:00 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.7
- phpdocumentor/reflection-docblock: ^5.3
- psr/log: ^3.0
- symfony/property-access: ^6.3|^7
- symfony/serializer: ^6.3|^7
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.2
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.22
README
状态
关于
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);