hello9/amazon-mws-client
Composer 安装命令:
composer require hello9/amazon-mws-client
包简介
PHP client for Amazon MWS API
README 文档
README
What for?
We got very disappointed with the official PHP client Amazon offers on their docs and decided to write a simple client based on Guzzle and suitable for PHP 7 projects. This project is based on the official client. The idea is to just hide all the nitty-gritty of handling requests and have as little abstraction as possible, basically you pass the request params and get a XML object back.
Check their documentation and scratchpad to learn all available actions and their request params:
- http://docs.developer.amazonservices.com/en_UK/dev_guide/DG_Registering.html
- https://mws.amazonservices.co.uk/scratchpad/index.html
Requirements
- PHP >= 7.0
- Guzzle 6
Install
composer require weengsapp/amazon-mws-client
Usage
// 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));
Hot to contribute
Pull requests are welcome :)
License
MIT
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-02