Numerous Packages Multiply
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-kontagentpublic

    node-kontagent

    Kontagent Node.js SDK (Unofficial). It's based on JavaScript SDK.

    Installation

    npm install kontagent

    Usage

    var KontagentApi = require('kontagent');
    var ktApi = new KontagentApi('23476987657438245', { useTestServer: true });
    ktApi.trackApplicationAdded('123', {uniqueTrackingTag: 111}, function(err, res) {
      if (err) return console.error(err.stack);
      console.log('ok');
    });

    Notes

    Since node-kontagent uses and http module you may want to adjust http.globalAgent.maxSockets.

    In this module semantics successCallback is not a success callback actually. It's supposed to be a regular callback with 2 arguments (err, res) where either err is an Error or res is an http.IncomingMessage.

    Keywords

    none

    install

    npm i node-kontagent

    Downloadsweekly downloads

    3

    version

    0.2.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar