Socket
Socket
Sign inDemoInstall

amazon-associate

Package Overview
Dependencies
3
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    amazon-associate

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


Version published
Weekly downloads
21
increased by162.5%
Maintainers
1
Install size
2.21 MB
Created
Weekly downloads
 

Readme

Source

amazon-associate

Build Status

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

install

npm install amazon-associate

use

var Amazon = require('amazon-associate');

var 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), function(err, earnings) {
    if (err) {
        throw err;
    }
    console.log(earnings);
});

api

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

license: MIT

Keywords

FAQs

Last updated on 09 Dec 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc