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