PHP code example of yuca / amazon-mws-client

1. Go to this page and download the library: Download yuca/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/ */

    

yuca / amazon-mws-client example snippets


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