PHP code example of hello9 / amazon-mws-client

1. Go to this page and download the library: Download hello9/amazon-mws-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hello9 / amazon-mws-client example snippets


// 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));