Skip to content

neirolis/notify-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

HTTP notifications example

This is just an example of an HTTP notification service for the RTMIP.

HTTP service should has 2 API functions:

GET /status - optional function, required to pass some variables to the rtmip and contacts list

POST / - main function to receive notifications data from rtmip and send it where is required, path to this API method specified directly in the address in rtmip, example: http://192.168.1.23:4567/send/notify

Data

Notification data received from the RTMIP:

{
  "recipients": ["string","string",...],
  "subject": "some notification title",
  "text": "text desciption of what happened in the event",
  "image": "base64 encoded image data"
}

Status data format what service should returned on GET /status request:

{
  "version": "v1.2.3",
  "contacts": [
    { "name": "Test", "value": "[email protected]" },
    { "name": "Test2", "value": "[email protected]" }
  ],
  "variables": []
}

About

Example of HTTP notifications service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages