Getting started

Install the plugin

npm install kontrl

Get your development token

Log in to Kontrl and get your development token.

Connect

// Require the kontrl library
const kontrl = require("kontrl");

// settings go here
kontrl.connect("YOUR_DEVELOPMENT_TOKEN");

Send out an alert

const kontrl = require("kontrl");
kontrl.connect("YOUR_DEVELOPMENT_TOKEN");

kontrl.alert({
  title: "Hello World!",
  message: "Welcome to Kontrl! If you have any questions, let us know at support@kontrl.be"
});

Start your application

Start your application and you’ll receive an email with the above content.