0.1.0 • Published 10 years ago

shoveover v0.1.0

Weekly downloads
4
License
BSD
Repository
github
Last release
10 years ago

shoveover

Pushover API client for node

Build Status

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!");
});