yuca / amazon-mws-client
Amazon MWS API 的 PHP 客户端
1.1.5
2020-08-23 06:12 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^5.0
README
用途是什么?
我们对 Amazon 在其文档中提供的官方 PHP 客户端非常失望,因此决定编写一个简单的客户端,基于 Guzzle,适用于 PHP 7 项目。该项目基于官方客户端。想法就是尽量隐藏处理请求的所有繁琐细节,尽可能减少抽象,基本上,你传递请求参数,并返回一个 XML 对象。
查看他们的文档和速记本来了解所有可用的操作及其请求参数
- http://docs.developer.amazonservices.com/en_UK/dev_guide/DG_Registering.html
- https://mws.amazonservices.co.uk/scratchpad/index.html
要求
- PHP >= 5.6
- Guzzle 6
安装
composer require yuca/amazon-mws-client
用法
// instantiate the client with your credentials $client = new Yuca\AmazonMwsClient( 'access key', 'secret key', 'seller id', ['marketplace id'], 'mws auth token', 'application name', 'application version' ); // List orders $optionalParams = [ 'CreatedAfter' => '2017-09-30T23:00:00Z', // dates should always be in ISO8601 format 'CreatedBefore' => '2017-10-23T23:00:00Z', ]; var_dump($client->send('ListOrders', '/Orders/2013-09-01', $optionalParams));
如何贡献
欢迎拉取请求 :)
许可证
MIT