0.1.1 • Published 7 years ago

amzn-papi v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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 :)

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

9 years ago

0.0.1

9 years ago