GithubHelp home page GithubHelp logo

ezalertmejs's Introduction

ezalertmejs

A simple module to send alerts to via Telegram, Messenger, Skype or Slack, with https://EZAlert.me API

What is EZAlert.me

EZAlert.me is a service to easily push alert messages from your Apps to a selected number of users via standard Istant Messages services, like Telegram, Facebook Messenger and Skype, or via Slack.

EZAlert.me is very easy to use because you just have to call a REST API. Anyway this module makes it even easier because you only have to import it and use the sendAlert() function.

How EZAlert.me works

Create an account o EZAlert.me and get a distribution channel. Each channel has an API key and a start code. You must send your start code to EZAlert.me bot to let it know you want to receive messages from that channel: add EZAlert.me bot on your Telegram, Messenger or Skype app, and start a conversation with it by sending the start command (detailed instructions available at https://ezalert.me/help ). After you joined your channel, you are ready to broadcast alerts from your app to your channel calling EZAlert.me REST Api with this module.

How to use this module

ezalertmejs module will get your channel API key from environment, so be sure to define it before launching Node, like


EZALERTME_APIKEY='YOUR EZALERT.ME API KEY HERE' node main.js

Sending an alert is very easy, just import the module and call sendAlert() method:


const ezalertme = require('ezalertmejs')

ezalertme.sendAlert('Houston, we have a problem!')

If you don't want to use EZALERTME_APIKEY env variable, you can specify API key at runtime. Add it as second argument of sendAlert() method:


const ezalertme = require('ezalertmejs')

ezalertme.sendAlert('Houston, we have a problem!','My EZAlert.me API key')

Installation

This module is available on npm. Install it with:


npm i ezalertmejs

ezalertmejs's People

Contributors

giuntim avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.