Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Get Started with TmLabs

node v8.17.0
version: 2.0.0
endpointsharetweet
Usage guide for TempicoLabs SDK. API Documentation here: https://docs.itsecurity.ee SDK Documentation here: https://code.itsecurity.ee/tempicolabs/tmlabs/blob/master/docs/README.md
First require "@tempicolabs/tmlabs" package.
var tmlabs = require("@tempicolabs/tmlabs");
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/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/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/blob/master/docs/README.md#event
tmLabs.on("error", function (error, command) { console.error("[ SDK ERROR ]", error); });
Loading…

no comments

    sign in to comment