Created
January 21, 2014 21:45
-
-
Save anaptfox/8549032 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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