0.2.0 • Published 6 years ago

rakuten-api v0.2.0

Weekly downloads
38
License
MIT
Repository
github
Last release
6 years ago

Rakuten Linkshare API

npm package

API integration with Rakuten Linkshare

Install

$ npm install rakuten-api

Get Affiliate ID, Auth Basic and Report ID

Usage

"use strict";

let Rakuten = require("rakuten-api"),
    rakuten = new Rakuten("user", "pass", "affid", "auth basic");

rakuten.programs({}, function(err, result){
    console.log(result);
});

rakuten.coupons({}, function(err, result){
    console.log(result);
});

rakuten.report("report name", "token", "2016-01-01", "2016-07-16", function(err, result){
    console.log(result);
});

rakuten.deeplink("http://www.zattini.com.br/", "h5aPSz1vA84", 41254, function(err, url){
    console.log(url);//http://click.linksynergy.com/deeplink?id=h5aPSz1vA84&mid=41254&murl=http%3A%2F%2Fwww.zattini.com.br%2F
});
0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.0.1

8 years ago