pushover.net

alternative pushover.net client for node

node-pushover

Client library for sending IOS and Android push notifications with Pushover.


npm install pushover.net

Send single messages and invoke a callback aftewards.

var pushover = require('pushover');
 
pushover({
  user: 'user',
  token: 'token',
  message: 'yoyoyo'
}, function(errok) {
 
});

Send a single message and send it later with end() with or with out a callback.

var pushover = require('pushover');
 
var po = pushover({
  user: 'user',
  token: 'token',
  message: 'yoyoyo'
});
 
po.end();

Queue up a bunch of messages with the same configuration and send them all at once.

var pushover = require('pushover');
 
var po = pushover({
  user: 'user',
  token: 'token'
});
 
po.push('message 1');
po.push('message 2');
po.push('message 3');
 
po.end();

Queue up a bunch of messages but with each having a custom configuration which will override the initial configuration.

var pushover = require('pushover');
 
var po = pushover({
  user: 'user',
  token: 'token'
});
 
po.push({
  title: 'title 1',
  message: 'message 1',
  priority: 1
});
 
po.push('message 2');
 
po.push({
  message: 'message 3',
  url: 'http://nodejs.org'
});
 
po.end();