Parse JavaScript Classes

Cloud Modules

Namespace SendGrid

Cloud Module for using SendGrid.

To use this Cloud Module in Cloud Code, start by requiring the sendgrid module and initializing it using your SendGrid apiUser and apiKey.
var SendGrid = require('sendgrid');
SendGrid.initialize('myApiUser','myApiKey');
You can then start using the module in your Cloud Code functions.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
SendGrid Cloud Module
Method Summary
Method Attributes Method Name and Description
<static>  
SendGrid.initialize(apiUser, apiKey)
Initialize the SendGrid module with the proper credentials
<static>  
SendGrid.sendEmail(params, options)
Send an email using SendGrid
Namespace Detail
SendGrid
SendGrid Cloud Module
Method Detail
<static> SendGrid.initialize(apiUser, apiKey)
Initialize the SendGrid module with the proper credentials
Parameters:
{String} apiUser
Your SendGrid apiUser
{String} apiKey
Your SendGrid apiKey

<static> {Parse.Promise} SendGrid.sendEmail(params, options)
Send an email using SendGrid
Parameters:
{Object} params
A hash of the paramaters to be passed to the SendGrid API. They are passed as-is, so you should consult SendGrid's documentation to ensure they are valid.
{Object} options
A hash with the success and error callback functions under the keys 'success' and 'error' respectively.
Returns:
{Parse.Promise}

Documentation generated by JsDoc Toolkit.