PHP code example of eolabs-io / guzzle-mws-middleware

1. Go to this page and download the library: Download eolabs-io/guzzle-mws-middleware 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/ */

    

eolabs-io / guzzle-mws-middleware example snippets

 php
$mwsMiddleware = AmazonMwsMiddleware::withSecretKey('testSecret');

$handlerStack = HandlerStack::create($mock);
$handlerStack->push($mwsMiddleware);

$base_uri = "https://mws.amazonservices.com";
$this->client = new Client(['handler' => $handlerStack, 'base_uri' => $base_uri]);

$this->client->post('/Feeds/2009-01-01', ['form_params' => ['merchantId' => '']]);