leadssu-webmaster-api
Version: 
leads.su API integration
30 lines (23 loc) • 1.02 kB
Markdown
To use the library, install it through [npm](https://npmjs.com)
```shell
npm install --save leadssu-webmaster-api
```
* https://webmaster.leads.su/account/default
    const LeadssuApi = require('leadssu-webmaster-api');
    const api = new LeadssuApi(token);
    let profile = await api.getProfile();
* getProfile(): Object
* getBalance(): Object
* getTrafficChannels(): Array< Object >
* getOffersData(int offerId?, int channelId?): Object
* getLeadsByOfferId(timestamp dateFrom, timestamp dateTo, int offerId?, int channelId?): Object
* getStatisticsOffers(timestamp dateFrom, timestamp dateTo, int offerId?, int channelId?, string subid?, string group?, string subgroup?): Object
* getWebmasterCommissions(timestamp dateFrom, timestamp dateTo, int offerId?): Object
* getCategories(): Object
* getOfferLinkByOfferId(int offerId, int channelId): Object
* apiRequest(action, params) - native leads.su api request