Parse JavaScript Classes

Cloud Modules

Class Mandrill

Cloud Module for using Mandrill.

To use this Cloud Module in Cloud Code, start by requiring the mandrill module and initializing it using your Mandrill api key.
var Mandrill = require('mandrill');
Mandrill.initialize('myApiKey');
You can then start using the module in your Cloud Code functions.

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

<static> Mandrill.sendEmail(params, options)
Send an email using Mandrill
Parameters:
{Object} params
A hash of the paramaters to be passed to the Mandrill API. They are passed as-is, so you should consult Mandrill'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.

Documentation generated by JsDoc Toolkit.