UNPKG

@dropbug/amazon-mws

Version:
25 lines (21 loc) 778 B
'use strict'; var accessKey = process.env.AWS_ACCESS_KEY_ID || 'YOUR_KEY'; var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET'; var amazonMws = require('../../../lib/amazon-mws')(accessKey, accessSecret); var fulfillmentInventoryRequest = function () { amazonMws.fulfillmentInventory.search({ 'Version': '2010-10-01', 'Action': 'ListInventorySupply', 'SellerId': 'SELLER_ID', 'MWSAuthToken': 'MWS_AUTH_TOKEN', 'MarketplaceId': 'MARKET_PLACE_ID', 'QueryStartDateTime': new Date(2016, 11, 24) }, function (error, response) { if (error) { console.log('error ', error); return; } console.log('response', response); }); }; fulfillmentInventoryRequest();