1. Go to this page and download the library: Download josalba/amazon-mws 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/ */
josalba / amazon-mws example snippets
$client = new MCS\MWSClient(
'Marketplace_Id',
'Seller_Id',
'Access_Key_ID',
'Secret_Access_Key',
'MWSAuthToken' // Optional. Only use this key if you are a third party user/developer
);
$client->validateCredentials();
$reportId = $client->requestReport('_GET_MERCHANT_LISTINGS_DATA_');
// Wait a couple of minutes and get it's content
$report_content = $client->GetReport($reportId);
print_r($report_content);
// Returns the current competitive price of a product, based on ASIN.
$client->getCompetitivePricingForASIN($asin_array = []);
// Returns the feed processing report and the Content-MD5 header.
$client->getFeedSubmissionResult($FeedSubmissionId);
// Returns pricing information for the lowest-price active offer listings for up to 20 products, based on ASIN.
$client->getLowestOfferListingsForASIN($asin_array = [], $ItemCondition = null);
// Returns lowest priced offers for a single product, based on ASIN.
$client->getLowestPricedOffersForASIN($asin, $ItemCondition = 'New');
// Returns a list of products and their attributes, based on a list of ASIN, GCID, SellerSKU, UPC, EAN, ISBN, and JAN values.
$client->getMatchingProductForId($asin_array, $type = 'ASIN');
// Returns a list of products and their attributes, based on an open text based query
$client->listMatchingProducts($query, $query_context_id = null);
// Returns pricing information for your own offer listings, based on ASIN.
$client->getMyPriceForASIN($asin_array = [], $ItemCondition = null);
// Returns pricing information for your own offer listings, based on SKU.
$client->getMyPriceForSKU($sku_array = [], $ItemCondition = null);
// Returns an order based on the AmazonOrderId values that you specify.
$client->getOrder($AmazonOrderId);
// Returns the parent product categories that a product belongs to, based on ASIN.
$client->getProductCategoriesForASIN($ASIN);
// Returns the parent product categories that a product belongs to, based on SellerSKU.
$client->getProductCategoriesForSKU($SellerSKU);
// Get a report's content
$client->getReport($ReportId);
// Returns a list of reports that were created in the previous 90 days.
$client->getReportList($ReportTypeList = []);
// Get a report's processing status
$client->getReportRequestStatus($ReportId);
// Get a list's inventory for Amazon's fulfillment
$client->listInventorySupply($sku_array = []);
// Returns a list of marketplaces that the seller submitting the request can sell in, and a list of participations that
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.