leadssu-webmaster-api

1.0.4 • Public • Published

leads.su API Integration

Installation

To use the library, install it through npm

npm install --save leadssu-webmaster-api

Get API token

Usage

const LeadssuApi = require('leadssu-webmaster-api');
const api = new LeadssuApi(token);
let profile = await api.getProfile();

API

  • getProfile(): Object
  • getBalance(): Object
  • getTrafficChannels(): Array< Object >
  • getOffersData(int offerId?, int channelId?): Array< Object >
  • getLeadsByOfferId(timestamp dateFrom, timestamp dateTo, int offerId?, int channelId?): Array< Object >
  • getStatisticsOffers(timestamp dateFrom, timestamp dateTo, int offerId?, int channelId?, string subid?, string group?, string subgroup?): Array< Object >
  • getWebmasterCommissions(timestamp dateFrom, timestamp dateTo, int offerId?): Object
  • getCategories()
  • getOfferLinkByOfferId(int offerId, int channelId): String
  • apiRequest(action, params) - native leads.su api request

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i leadssu-webmaster-api

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.24 kB

    Total Files

    3

    Last publish

    Collaborators

    • nebaz