sync-webmaster-api
v1.0.0
Published
sync.deals API integration. Affise API integration
Readme
sync.deals API Integration (API integration based on affise.com)
Installation
To use the library, install it through npm
npm install --save sync-webmaster-apiGet API token here
- https://partners.sync.deals/v2/profile/api-key
Usage
const SyncApi = require('sync-webmaster-api');
const api = new SyncApi(webmasterId, token);
let offers = await api.getOffersData(ids);API
- getOffersData(Array< int > offerIds): Object
- getLeadsByOfferId(timestamp dateFrom, timestamp dateTo, int offerId?): Object
- getStatisticsOffers(timestamp dateFrom, timestamp dateTo, Array< int > offerIds?, string subid?): Object
- getOfferLinkByOfferId(int offerId): Object
- apiRequest(method) - native sync api request
