To use the library, install it through npm
npm install --save awin-webmaster-apiconst AwinApi = require('awin-webmaster-api');
const api = new AwinApi(userId, token);
let awinOffers = await api.getOffersData('ES');
- getOffersData(string countryCode?, string relationship?): Object
- getLeadsByOfferId(timestamp dateFrom, timestamp dateTo, int offerId?): Object
- getStatisticsOffers(timestamp dateFrom, timestamp dateTo, int offerId?, array regions): Object
- getStatisticsOffersByRegion(timestamp dateFrom, timestamp dateTo, int offerId?, string region): Object
- getOfferLinkByOfferId(int offerId): Object
- apiRequest(method) - native awin api request