amzn-papi

0.1.1 • Public • Published

Amazon Product Advertisment API

This library allows you to access the Amazon Product Advertising API from your node.js application.

Usage

Install the library with

npm install amzn-papi

Require the library in your application

var amazon = require('amzn-papi')

Then instantiate a client:

var client = amazon.createClient({
  awsId: [YOUR AMAZON AWS ID],
  awsSecret: [YOUR AMAZON SECRET],
  awsTag: [YOUR AFFILIATE TAG]
});

You can now refer to the Amazon API docs for available methods and parameters. Each method will return a Promise.

For example:

client.ItemLookup({
    ItemId: 'B000BIPMC2',
    ResponseGroup: 'ItemAttributes'
}).then(function(result){
    console.log(result)
}).catch(function(error){
    console.log(err.stack);
});

Currently implemented methods are:

All methods related to Cart are not yet implemented - pull requests are welcome :)

Readme

Keywords

none

Package Sidebar

Install

npm i amzn-papi

Weekly Downloads

2

Version

0.1.1

License

ISC

Last publish

Collaborators

  • aisaacs