admitad-webmaster-api

1.2.0 • Public • Published

Admitad API Integration

Installation

To use the library, install it through npm

npm install --save admitad-webmaster-api

Get clientId and clientSecret

Usage

const AdmitadApi = require('admitad-webmaster-api');
const api = new AdmitadApi(clientId, clientSecret);
let profile = await api.getProfile();

API

  • getProfile()
  • getBalance(currency: String)
  • getTrafficChannels()
  • getOfferLinkByOfferId(offerId: Integer, channelId: Integer)
  • getStatisticsOffersByOfferId(dateFrom: timestamp, dateTo: timestamp, offerId: Integer?, channelId: Integer?, subId: String?)
  • getLeadsByOfferId(dateFrom: timestamp, dateTo: timestamp, offerId: Integer?, channelId: Integer?)
  • getCrByOfferId(dateFrom: timestamp, dateTo: timestamp, offerId: Integer, channelId: Integer?)
  • apiRequest(params: String) - native admitad api request

Readme

Keywords

none

Package Sidebar

Install

npm i admitad-webmaster-api

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

10.7 kB

Total Files

3

Last publish

Collaborators

  • nebaz