affilitest

1.0.1 • Public • Published

AffiliTest-JS

AffilITest's API implementation in JS for the Node environment.

Tested with Node 8.11.1

Basic usage

For full usage please refer to the examples directory

    const { AffiliTestAPI, DEVICES } = require('affilitest');

    let affilitest = new AffilITestAPI();

    affilitest.login('email', 'password');

    // Passing the offer's URL, country code and device type
    // A custom device string can be passed too
    affilitest.test('http://example.com', 'us', DEVICES.ANDROID);

Methods

AffiliTestAPI Class

Login

AffiliTestAPI.login(email, password)

Logout

AffiliTestAPI.logout

Test

AffiliTestAPI.test(url, country, device)

Compare To Preview

AffiliTestAPI.compareToPreview(url, previewURL, country, device)

App Info

AffiliTestAPI.appInfo(params)

  • params.country - The app's country
  • params.url - The app's app store URL (Play Store or Appstore URL)
  • params.identifier - The app's package or id (Android Package or Appstore id)

Calls left

AffiliTestAPI.callsLeft

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i affilitest

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    17.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • tsirolnik