shoveover
v0.1.0
Published
Pushover API client
Downloads
3
Readme
shoveover
Pushover API client for node
Installation
npm install shoveover
Usage
shoveover exposes an Application constructor; this contains one method, notify
, allowing you to send notifications as that application targeted to a specific user/device.
The object passed to notify can include params (minus token) outlined here.
var pushover = require("shoveover");
var MyApp = new pushover.Application({ token: "MyAppToken" });
MyApp.notify({
user: "UserToken",
message: "Test notification!"
}, function (error) {
if (error) return console.log(error);
console.log("Notification sent to user via Pushover!");
});