amazon-mws-api

0.0.1 • Public • Published

amazon-mws-api

This project is a fork of this.

Examples

Installation:

npm i mws-api -S

Initialization:

const MWSClient = require('mws-api');
const mws = new MWSClient({
  accessKeyId: 'lol',
  secretAccessKey: 'kek',
  merchantId: 'hue',
  meta: {
    retry: true, // retry requests when throttled
    next: true, // auto-paginate
    limit: Infinity // only get this number of items (NOT the same as MaxRequestsPerPage)
  }
});

Usage:

 
mws.Feeds.ListOrders({
  MarketplaceId: 'lel',
  MaxResultsPerPage: 10,
  CreatedAfter: new Date(1,1,2015),
  CreatedBefore: new Date(1,2,2015)
})
.then(({ result, metadata }) => {
  // result
});

Package Sidebar

Install

npm i amazon-mws-api

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jeremy-wagner