Integrate Instant Notification

. 3 min read

If you have any problem with integration or you don't know how to do it - ping me and I will help you with integration in any platform.

Do you want to get instant notification about new order or errors which happened on the server? Let's see how to integrate Techmet.io notification and don't miss anything.

For integration Instant Notification you should:

  1. Create an Account
  2. Define Notification
  3. Integrate it into your application/website.

Install Techmet Bot

Install our Telegram Bot , start chat by sending "/start" message, copy your Chat Id and past to your User Profile in Telegram Chat Id field.

Getting Chat Id from TechmetBot
Installing TechmetBot in Telegram

Define Notification

If you want to create Instant Notification, you should Sign In, click on "Notifications" in the menu then press "Add Notification" button.

Click "Notifications" and then "Add Notification" button

In opened window fill all fields and click "Add Notification":

  • Notification title - notification name, will be shown on top of the notification message.
  • Notification Type - can be Warning and Info. Using to visual filtering important notification.
  • Dashboard - to which dashboard this notification related. Will be shown in a notification message.
  • Notification Details - you can send any information (errors, order payment info, etc..) in a request.
Fill fields and push "Add Notification"

Done. Next step is Integration.

Integrate notification in your application or website.

Here you should do a few small steps to integrate notification in your product. Let's start with getting the unique URL of notification: Open "Notifications" or "Notification Details" (Edit button)  

URL To Trigger on Notifications screen
Notification URL on Notification Details screen

Copy this URL: https://techmet.io/api/sendNotification/Your_UNIQUE_INDENTIFIER

You will use this URL in your code to send the notification. All you need to do: place a few lines of code in the place where you want to send notification on a specific event. For example, You want to send the notification when some errors happened.

//node.js
const request = require('request');

// Error handler
var options = {			uri:'https://techmet.io/api/sendNotification/Your_UNIQUE_INDENTIFIER',
form: {details: "Error: "+ error_details}
}
request.post(options, (err, res, body) => {
    //Handle error, etc..
});

That's all. Easy, isn't it? You should do the same things if you want to get the notification when somebody bought something on your website and you want to ship it asap.

//node.js
const request = require('request');

// Order payment handler
var options = {			uri:'https://techmet.io/api/sendNotification/Your_UNIQUE_INDENTIFIER',
form: {details: "Details: "+ order_details}
}
request.post(options, (err, res, body) => {
    //Handle error, etc..
});

If you have any problem with integration or don't know how to do it - ping me and I will help you with integration in any platform.

My Contacts:
Twitter