Get Started with Tempico Labs SDK

node v8.17.0
version: 1.0.0
endpointsharetweet
Usage guide for TempicoLabs SDK. API Documentation here: https://docs.itsecurity.ee SDK Documentation here: https://code.itsecurity.ee/tempicolabs/tmlabs-sdk/blob/master/docs/README.md
First require "@tempicolabs/sdk" package.
var tmlabs = require("@tempicolabs/sdk");
Now you can see what package contains (Main class, helper classes + helper functions). More about the contents of the package here: https://code.itsecurity.ee/tempicolabs/tmlabs-sdk/blob/master/docs/README.md#tmlabs There are more examples how to use in ES6 code.
For more convenient use, I suggest main package class TmLabs.
var TmLabs = tmlabs.TmLabs; // or tmlabs.default;
After that we create TmLabs instance with needed options. More about options here: https://code.itsecurity.ee/tempicolabs/tmlabs-sdk/blob/master/docs/README.md#new_TmLabs_new
var tmLabs = new TmLabs();
Now it's time for event handlers. For easy error tracking i suggest to use error handler on main class instance. All events listed here: https://code.itsecurity.ee/tempicolabs/tmlabs-sdk/blob/master/docs/README.md#event
tmLabs.on("error", function (error, command) { console.error("[ SDK ERROR ]", error); });
Loading…

no comments

    sign in to comment