Skip to content

Instantly share code, notes, and snippets.

@anaptfox
Created January 21, 2014 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anaptfox/8549032 to your computer and use it in GitHub Desktop.
Save anaptfox/8549032 to your computer and use it in GitHub Desktop.
//Create a Pushover object with the user, token , and priority
var p = new push( {
user: user,
token: TOKEN,
priority: priority
});
//Create our message and title
var msg = {
title: project.name + messageAction,
message: "Project name : " + project.name + "\n\n" + "Time of " + type +
": " + time + "\n\n" + "Project URL : " + project.domain + "\n\n" +
"Log on to modulus.io for more details\n"
};
//Send to phone
p.send( msg, function( err, result ) {
if ( err ) {
throw err;
}
});
// Send a 200 response
return res.send(200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment