accestech / sherweb-api
Sherweb API 的 API 接口
0.0.1
2020-11-27 21:44 UTC
Requires
- php: ^7.4
- ext-json: *
- guzzlehttp/guzzle: 7.0
- nesbot/carbon: ^2.41
Requires (Dev)
- phpunit/phpunit: ^9.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-09-29 05:48:59 UTC
README
这是一个 Sherweb API 的粗略实现
目前,这更像是概念验证而不是库
示例
请勿在生产环境中使用!
# The package does not exists yet ...
composer require accestech/sherweb-api
<?php require ('vendor/autoload.php'); use Accestech\SherwebApi\SherwebApi; // The only scope currently supported by the API is 'distributor' $api = new SherwebApi('api_client_id', 'api_client_secret', 'scope'); $api->distributor()->getPayableCharges();
待办事项
- 错误处理
- 单元测试