simple-hooks-events

0.0.1 • Public • Published

simple-hooks-events

A simple library for Hooks

Usage

var Hooks = require("simple-hooks-events");

var hook = new Hooks("API key");

hook.send("Message Title", "Message Body", function(sent) {
  if (sent) {
    console.log("Optional callback...");
  } else {
    console.log("...to check if the message was approved by the Hooks server");
  }
});

License

MIT

Package Sidebar

Install

npm i simple-hooks-events

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • dpskvn