UNPKG

@dropbug/amazon-mws

Version:
28 lines (24 loc) 817 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 reportRequest = function () { /** * This will not provide you Throttling details in Header. * Amazon MWS itself not providing Throttling detail in GetReport call. */ amazonMws.reports.search({ 'Version': '2009-01-01', 'Action': 'GetReport', 'SellerId': 'SELLER_ID', 'MWSAuthToken': 'MWS_AUTH_TOKEN', 'ReportId': 'REPORT_ID' }, function (error, response) { if (error) { console.log('error ', error); return; } console.log('response', response); }); }; reportRequest();