This repo is just a fork of the project
mws-api. I needed to take the lastest version which was not published.
Amazon MWS Node.js modules are a mess. This project is based on multiple projects from this.
Promise based. Only compatible with Node ^4.0.0. (unless someone adds a babel precompilation step)
Supports throttling and pagification. (NextToken stuff)
npm i mws-api -S
const MWSClient = ;const mws =accessKeyId: 'lol'secretAccessKey: 'kek'merchantId: 'hue'meta:retry: true // retry requests when throttlednext: true // auto-paginatelimit: Infinity // only get this number of items (NOT the same as MaxRequestsPerPage);
For other countries, also set the
host parameter, according to the
MarketPlaceId you are using, otherwise it leads to
AccessDenied error. For example:
...const mws =host: 'mws.amazonservices.co.uk' // .de, .es, .fr, .it, etc...
When working with a flat-file response from Amazon, a
parseCSVResult function is provided as an
option to conviniently post-process the result. Returning a Promise will result in the Promise being resolved.
// An example to change the encoding of the raw responseconst iconv = ;const MWSClient = ;const mws =accessKeyId: 'lol'secretAccessKey: 'kek'merchantId: 'hue'meta:iconv;