1.1.1 • Published 5 years ago
gdeslon-webmaster-api v1.1.1
Gdeslon API Integration
Installation
To use the library, install it through npm
npm install --save gdeslon-webmaster-api
Get API tokens
- https://www.gdeslon.ru/api_settings/orders - for get orders
- https://www.gdeslon.ru/api_settings/xml - for get links
Usage
const GdeslonApi = require('gdeslon-webmaster-api');
const api = new GdeslonApi(wmId, ordersApiToken, linksApiToken);
let links = await api.getOfferLinksByOfferId();
API
- getLeadsByOfferId(timestamp dateFrom, timestamp dateTo, int offerId, string subAccount): Array< Object >
- getStatisticsOffersByOfferId(timestamp dateFrom, timestamp dateTo, int offerId, string subAccount): Object
- getWebmasterCommissions(timestamp dateFrom, timestamp dateTo, int offerId): Object
- getOfferLinksByOfferId(int offerId): Array< Object >
- apiRequest(params) - native gdeslon api request