MobPartner is a Mobile Affiliate Platform used in WidPlay. The API it's very basic. With this API can get your statistics account. This library use promises.
npm install mobpartner
* today
* yesterday
* thisweek
* lastweek
* thismonth
* last7days
* last30days
* lastmonth
* thisyear
* lastyear
* interval
Note that we use promises syntax
var MobPartner = require('mobpartner');
var mobpartner = new MobPartner('yourkey', 'yourlogin');
mobpartner.today()
.then(function(stats){
console.log(stats);
});
var MobPartner = require('mobpartner');
var mobpartner = new MobPartner('yourkey', 'yourlogin');
mobpartner.interval('20140324', '20140326')
.then(function(stats){
console.log(stats);
});
0.0.1
MIT