hello9 / amazon-mws-client
Amazon MWS API的PHP客户端
1.0.1
2017-10-25 16:06 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2024-09-22 03:42:06 UTC
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 >= 7.0
- Guzzle 6
安装
composer require weengsapp/amazon-mws-client
使用方法
// instantiate the client with your credentials $client = new AmazonMwsClient( 'access key', 'secret key', 'seller id', ['marketplace id'], 'mws auth token' ); // 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));
如何贡献
欢迎Pull requests :)
许可证
MIT