0.0.1 • Published 8 years ago

amazon-mws-api v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

amazon-mws-api

Amazon MWS API Developmenet Hub

Welcome to the Amazon MWS API development hub, where we work on the world's finest API client for the Amazon MWS API!

Examples (More To Come Soon)

Installation:

npm install amazon-mws-api

Initialization:

const MWSClient = require('amazon-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
});

This project is a fork of this.