amazon-associate

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

amazon-associate

simple interface to amazon associate reports

this is very much work in progress

npm install amazon-associate
 
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 2012522)(err, earnings) ->
        throw err if err?
        console.log earnings
 
        amazon.getOrders (new Date 2012522)(err, orders) ->
            throw err if err?
            console.log orders