PHP code example of luzf / amazon-selling-partner-sdk-orders
1. Go to this page and download the library: Download luzf/amazon-selling-partner-sdk-orders 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/ */
luzf / amazon-selling-partner-sdk-orders example snippets
use Amz\Orders\ResponseTypes;
use OpenAPI\Runtime\Client;
use OpenAPI\Runtime\SimplePsrResponseHandlerStack;
Client::configure(
new \GuzzleHttp\Client([
'base_uri' => 'https://sellingpartnerapi-na.amazon.com/',
'headers'=>[
'Authorization'=> 'Bearer <accessToken>'
]
]),
new SimplePsrResponseHandlerStack(new ResponseTypes())
);
use Amz\AplusContent\Api\AplusContent;
use Ebay\Sell\Account\Api\Program;
$api = new AplusContent();
$docs = $api->searchContentDocuments(['marketplaceId'=>'xxxxxx']);