Giter Club home page Giter Club logo

amazon-associate's Introduction

amazon-associate

Build Status

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

install

npm install amazon-associate

use

Amazon = require 'amazon-associate'

amazon = new Amazon
    associateId: 'your amazon associate id'
    password: 'your password'
    host: 'assoc-datafeeds-na.amazon.com' # (default 'assoc-datafeeds-eu.amazon.com')
    debug: true # print debug output to the console (optional)

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

api

  • getEarnings(date, cb) calls cb of the earnings of the given date. each earning has the following properties:
    • asin that is the amazon standard identification number of the product
    • category that is the id of the category of the product
    • date that is the date in a format like September 25, 2012
    • edate that is the date as posix time
    • earnings that is the amount that was earned for the associate program
    • linktype
    • price that is the price of the product
    • qty that is the quantity that was bought of the product
    • rate that is the percentage of the earnings on the price
    • revenue
    • seller that is the name of the product's seller
    • subtag that is the subtag used in the affiliate link
    • tag that is the associate id
    • title that is the title of the product
  • getOrders(date, cb) calls cb of the orders of the given date. each order has the following properties:
    • asin that is the amazon standard identification number of the product
    • category that is the id of the category of the product
    • clicks
    • conversion
    • dqty
    • date that is the date in a format like September 25, 2012
    • linktype
    • nqty
    • price that is the price of the product
    • qty that is the quantity that was bought of the product
    • subtag that is the subtag used in the affiliate link
    • tag that is the associate id
    • title that is the title of the product

license: MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.