Cityads API Integration
Installation
To use the library, install it through
npm
``
shell
npm install --save cityads-webmaster-api
``
Get API token
* https://cityads.com/publisher/api
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