cityads-webmaster-api

1.3.2 • Public • Published

Cityads API Integration

Installation

To use the library, install it through npm

npm install --save cityads-webmaster-api

Get API token

Usage

const CityadsApi = require('cityads-webmaster-api');
const api = new CityadsApi(token);
let links = await api.getOfferLinksByOfferId(29028);

API

  • getProfile(): Object
  • getBalance(): Object
  • chargeHistoryList(): Array< Object >
  • getTrafficChannels(): Array< Number >
  • getOfferDataByOfferId(int offerId): Object
  • getOffersData(Array< Number > offerIds, int channelId): Object
  • getCrByOfferId(timestamp dateFrom, timestamp dateTo, int offerId, int channelId): Object
  • getLeadsByOfferId(timestamp dateFrom, timestamp dateTo, int offerId, int channelId, string xid): Array< Object >
  • getStatisticsOffersByOfferId(timestamp dateFrom, timestamp dateTo, int offerId, int channelId, string group): Object
  • getWebmasterCommissions(timestamp dateFrom, timestamp dateTo, int offerId): Object
  • getOfferLinksByOfferId(int offerId, int channelId): Object
  • apiRequest(action, params) - native cityads api request

Readme

Keywords

none

Package Sidebar

Install

npm i cityads-webmaster-api

Weekly Downloads

2

Version

1.3.2

License

MIT

Unpacked Size

11.2 kB

Total Files

3

Last publish

Collaborators

  • nebaz