mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
26 lines
488 B
JavaScript
26 lines
488 B
JavaScript
var push = require( '../lib/pushover.js' );
|
|
|
|
var p = new push( {
|
|
user: process.env['PUSHOVER_USER'],
|
|
token: process.env['PUSHOVER_TOKEN'],
|
|
update_sounds: false,
|
|
debug: true,
|
|
onerror: function(err) {
|
|
console.log('ERROR!', err);
|
|
}
|
|
});
|
|
|
|
var msg = {
|
|
message: 'omg node test',
|
|
sound: 'magic',
|
|
title: "Well - this is fantastic",
|
|
};
|
|
|
|
// console.log( p );
|
|
|
|
p.send( msg, function( err, result ) {
|
|
console.log( 'error', err );
|
|
console.log( 'result', result );
|
|
// process.exit(0);
|
|
});
|