amazon-associate

amazon-associate is a simple interface to amazon associate reports for nodejs

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
422May 29, 2018Jun 27, 2012Minified + gzip package size for amazon-associate in KB

Readme

amazon-associate

simple interface to amazon associate reports

this is very much work in progress

Install

npm install amazon-associate

Use


Amazon = require 'amazon-associate'

amazon = new Amazon
    associateId: 'your amazon associate id'
    password: 'your password'
    # debug: true

amazon.getReports (err, reports) ->
    throw err if err?
    console.log reports

    amazon.getEarnings (new Date 2012, 5, 22), (err, earnings) ->
        throw err if err?
        console.log earnings

        amazon.getOrders (new Date 2012, 5, 22), (err, orders) ->
            throw err if err?
            console.log orders

License: MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.