1. Go to this page and download the library: Download kkgerry/laravel-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/ */
kkgerry / laravel-amazon-mws example snippets
use Kkgerry\AmazonMws\AmazonOrderList;
function getAmazonOrders() {
$amz = new AmazonOrderList("myStore"); //store name matches the array key in the config file
$amz->setLimits('Modified', "- 24 hours");
$amz->setFulfillmentChannelFilter("MFN"); //no Amazon-fulfilled orders
$amz->setOrderStatusFilter(
array("Unshipped", "PartiallyShipped", "Canceled", "Unfulfillable")
); //no shipped or pending
$amz->setUseToken(); //Amazon sends orders 100 at a time, but we want them all
$amz->fetchOrders();
return $amz->getList();
}
use Kkgerry\AmazonMws\AmazonOrderList;
function sendInventoryFeed($feed) {
$amz = new AmazonFeed("myStore"); //store name matches the array key in the config file
$amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
$amz->setFeedContent($feed);
$amz->submitFeed();
return $amz->getResponse();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.