Nietzsche's Preposterous Moustache
Get unlimited public & private packages + team-based management with npm Teams.Learn more »

mws-sdk2

0.9.13 • Public • Published

mws-sdk

Originally forked from dfsklar/mws-js. This is another continuation of mws-js with a more standarized node module setup.

Examples

Initiation

var MWS = require('mws-sdk'),
    client = new MWS.Client('accessKeyId', 'secretAccessKey', 'merchantId', {}),
    marketPlaceId = "ATVPDKIKX0DER";
var sf = new MWS.Orders.requests.ListOrders({"marketPlaceId": marketPlaceId});
sf.params.MarketplaceId.value = marketPlaceId;
sf.params.CreatedAfter.value = "2014-07-13";
client.invoke(sf, function(RESULT){
  console.log("--------");
  console.log(JSON.stringify(RESULT));
  console.log("--------");
});
 
 
var sf = new MWS.Orders.requests.ListOrderItems();
sf.params.AmazonOrderId.value = "111-1715221-5800265";
client.invoke(sf, function(RESULT){
  console.log("--------");
  console.log(JSON.stringify(RESULT));
  console.log("--------");
});

Install

npm i mws-sdk2

DownloadsWeekly Downloads

13

Version

0.9.13

License

none

Unpacked Size

59 kB

Total Files

12

Homepage

_

Last publish

Collaborators

  • avatar