Parse JavaScript Classes

Cloud Modules

Class Twilio

Cloud Module for using Twilio.

To use this Cloud Codule in Cloud Code, start by requiring the twilio module and initializing it using your Twilio account sid and auth token.
var Twilio = require('twilio');
Twilio.initialize('myAccountSid','myAuthToken');
You can then start using the module in your Cloud Code functions.

Class Summary
Constructor Attributes Constructor Name and Description
 
Twilio()
Twilio Cloud Module
Method Summary
Method Attributes Method Name and Description
<static>  
Twilio.initialize(accountSid, authToken)
Initialize the Twilio module with the proper credentials
<static>  
Twilio.sendSMS(params, options)
Send an SMS using Twilio
Class Detail
Twilio()
Twilio Cloud Module
Method Detail
<static> Twilio.initialize(accountSid, authToken)
Initialize the Twilio module with the proper credentials
Parameters:
{String} accountSid
Your Twilio account sid
{String} authToken
Your SendGrid auth token

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