Created
October 24, 2015 20:07
-
-
Save kunal732/f28ae9061f403dcca579 to your computer and use it in GitHub Desktop.
bvp hackathon sendgrid parse cloudcode
This file contains 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
var sendgrid = require("sendgrid"); | |
sendgrid.initialize("username", "password"); | |
// Use Parse.Cloud.define to define as many cloud functions as you want. | |
// For example: | |
Parse.Cloud.define("hello", function(request, response) { | |
response.success("testing email"); | |
sendgrid.sendEmail({ | |
to: "[email protected]", | |
from: "[email protected]", | |
subject: "test", | |
text: "please work" | |
}, { | |
success: function() {}, | |
error: function() {} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment