Talk I gave for AirConf 2014 on how to use Twilio to add voice and SMS capabilities to your web and mobile applications.
VOICE & SMS FOR YOUR APPSJeff Linwood, Biscotti Labs AirConf 2014@jefflinwood http://www.biscottilabs.com/ http://www.jefflinwood.com/
View Slide
TODAY’S TALKQuick Intro Discussion of Twilio API Getting Started with Twilio Sending & Receiving SMS Sending & Receiving Voice Twilio Client
JEFF LINWOODSoftware Developer with BiscottiLabs Teaches Mobile App Developmentat UT-Austin as an adjunct Uses Twilio for web and mobileapps Current Projects: On Our WayApp, MapRhino App
THE TWILIO APITwilio provides voice and SMSAPIs for web and mobile Send and receive SMS Make and receive voice calls VOIP for web and mobileclients
DIFFERENT USER INTERFACESDesktop Web Mobile (Web or App) Email Voice Text Message (SMS)
GETTING STARTED WITH TWILIO
GETTING STARTED WITH TWILIONeed to sign up onwww.twilio.com Add some money toyour account, or use freetrial Twilio pricing(www.twilio.com/pricing)
TWILIO DASHBOARD
BUYING NUMBERSYou can buy phone numbersthrough Twilio In the US, you can choose by areacode, or get a toll-free number Toll-free numbers have highercosts (per month, and perminute)
TWIML APPSNow that you have a number,how do you point it to yourapplication? TwiML Apps map voice andmessaging requests to a URL onthe public internet You can also map voice and SMSURLs directly to a number
TWILIO MARKUP LANGUAGETwilio Markup Language - TwiML - XML Verb-based https://www.twilio.com/docs/api/twiml
PROVIDING TWIML TO TWILIOAfter receiving a voice or SMScall to a Twilio phone number,Twilio will make an HTTPRequest to the specified URL Twilio passes along metadataabout the incoming call or textmessage Your web application returnsTwiML to Twilio
CONFERENCE CALL EXAMPLEServed directly from a web server Call (512)-969-2045 to try it Configured in TwiML App
USING TWILIO IN YOUR WEB APP
TWILIO REST APIMake outbound calls or send textmessages Buy phone numbers Inspect calls while they are live https://www.twilio.com/docs/api/rest Works with TwiML
TWILIO API LIBRARIESYou can make calls directly to theREST API with JSON or XML PHP, Ruby, Python, C#, Java,Node.js - official Other languages are contributed Also can help create TwiML
MAKING OUTBOUND CALLS
SENDING SMS MESSAGES
RECEIVING SMS MESSAGES
TWILIO CLIENT - VOIPWeb/Javascript iOS Android PhoneGap (https://github.com/jefflinwood/twilio_client_phonegap)
TWILIO CLIENTCapability Token Don’t ship Twilio credentials onthe client side Build apps that do voice chat,conference call, make phone calls Add click to chat to your website Pass parameters when connecting
THANK YOU!Jeff Linwood, @jefflinwood, [email protected]