Today we’re excited to announce the release of the complete Twilio Helper Library for Salesforce. Adding voice and SMS to your Salesforce and Force.com apps has never been easier.
Introducing the Twilio Helper Library for Salesforce
Twilio makes it simple to program the phone network with its REST APIs for voice and SMS communications. This makes it a natural fit for CRM users in sales, marketing, and customer service who want a frictionless way to communicate with customers and prospects. In fact, through the apps they’ve built, like a sales call center, a portal voice chat solution and a call tracking system, Force.com developers have shown us that Salesforce and Twilio are like peanut butter and chocolate. We wanted to make it even faster to get started using Twilio.
The Twilio Helper Library for Salesforce provides Apex classes for calling the entire Twilio REST API, making and receiving calls from Salesforce using Twilio Client and controlling phone calls with TwiML. It also includes configuration for managing your Twilio account credentials. We’ve taken all the great REST and JSON support built into Force.com and wrapped it up to save you time and let you start coding away.
The code is structured around a few key classes:
TwilioConfig__c.object | Custom Setting that stores your Twilio account credentials securely Twilio.remoteSite Authorizes your Salesforce org to call out to api.twilio.com |
TwilioAPI.cls | Provides Twilio library components populated with your TwilioConfig credentials |
TwilioRestClient.cls | Entry point to the Twilio REST API |
TwilioAccount.cls | Resource wrapper for a Twilio account or subaccount that provides access to the other REST API resources in that account |
TwilioCapability.cls | Generates capability tokens for use with the Twilio Client Javascript and Mobile SDKs |
TwilioTwiML.cls | Provides an easy way to produce TwiML documents when responding to Twilio webhook callouts |
Getting Started
The helper library code is open source and available on GitHub. There you’ll find all you need for deploying the code to Salesforce and getting your first app up and running. When you’re ready to dig deeper, check out the full documentation.
Or you can skip straight to your topic of interest:
- Installation
- Quickstart
- Making Phone Calls
- Sending SMS Messages
- Turning Salesforce into a Phone with Twilio Client
- Working with TwiML
Visit us at Cloudstock!
Join us at Cloudstock in San Francisco on March 15 to learn more about powering your CRM app with cloud communications.