Socket
Book a DemoInstallSign in
Socket

mws-sdk2

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mws-sdk2

Amazon Marketplace Web Services client with support for all api calls.

latest
Source
npmnpm
Version
0.9.13
Version published
Maintainers
1
Created
Source

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("--------");
});

Keywords

mws

FAQs

Package last updated on 31 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts