Skip to content

Instantly share code, notes, and snippets.

@kunal732
Created October 24, 2015 20:07
Show Gist options
  • Save kunal732/f28ae9061f403dcca579 to your computer and use it in GitHub Desktop.
Save kunal732/f28ae9061f403dcca579 to your computer and use it in GitHub Desktop.
bvp hackathon sendgrid parse cloudcode
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