Slide 1

Slide 1 text

VOICE & SMS FOR YOUR APPS Jeff Linwood, Biscotti Labs AirConf 2014 @jefflinwood http://www.biscottilabs.com/
 http://www.jefflinwood.com/

Slide 2

Slide 2 text

TODAY’S TALK Quick Intro Discussion of Twilio API Getting Started with Twilio Sending & Receiving SMS Sending & Receiving Voice Twilio Client

Slide 3

Slide 3 text

JEFF LINWOOD Software Developer with Biscotti Labs Teaches Mobile App Development at UT-Austin as an adjunct Uses Twilio for web and mobile apps Current Projects: On Our Way App, MapRhino App

Slide 4

Slide 4 text

THE TWILIO API Twilio provides voice and SMS APIs for web and mobile Send and receive SMS Make and receive voice calls VOIP for web and mobile clients

Slide 5

Slide 5 text

DIFFERENT USER INTERFACES Desktop Web Mobile (Web or App) Email Voice Text Message (SMS)

Slide 6

Slide 6 text

GETTING STARTED WITH TWILIO

Slide 7

Slide 7 text

GETTING STARTED WITH TWILIO Need to sign up on www.twilio.com Add some money to your account, or use free trial Twilio pricing (www.twilio.com/pricing)

Slide 8

Slide 8 text

TWILIO DASHBOARD

Slide 9

Slide 9 text

BUYING NUMBERS You can buy phone numbers through Twilio In the US, you can choose by area code, or get a toll-free number Toll-free numbers have higher costs (per month, and per minute)

Slide 10

Slide 10 text

TWIML APPS Now that you have a number, how do you point it to your application? TwiML Apps map voice and messaging requests to a URL on the public internet You can also map voice and SMS URLs directly to a number

Slide 11

Slide 11 text

TWILIO MARKUP LANGUAGE Twilio Markup Language - TwiML - XML Verb-based https://www.twilio.com/docs/api/twiml

Slide 12

Slide 12 text

PROVIDING TWIML TO TWILIO After receiving a voice or SMS call to a Twilio phone number, Twilio will make an HTTP Request to the specified URL Twilio passes along metadata about the incoming call or text message Your web application returns TwiML to Twilio

Slide 13

Slide 13 text

CONFERENCE CALL EXAMPLE Served directly from a web server Call (512)-969-2045 to try it Configured in TwiML App

Slide 14

Slide 14 text

USING TWILIO IN YOUR WEB APP

Slide 15

Slide 15 text

TWILIO REST API Make outbound calls or send text messages Buy phone numbers Inspect calls while they are live https://www.twilio.com/docs/api/ rest Works with TwiML

Slide 16

Slide 16 text

TWILIO API LIBRARIES You can make calls directly to the REST API with JSON or XML PHP, Ruby, Python, C#, Java, Node.js - official Other languages are contributed Also can help create TwiML

Slide 17

Slide 17 text

MAKING OUTBOUND CALLS

Slide 18

Slide 18 text

SENDING SMS MESSAGES

Slide 19

Slide 19 text

RECEIVING SMS MESSAGES

Slide 20

Slide 20 text

TWILIO CLIENT - VOIP Web/Javascript iOS Android PhoneGap (https://github.com/ jefflinwood/ twilio_client_phonegap)

Slide 21

Slide 21 text

TWILIO CLIENT Capability Token Don’t ship Twilio credentials on the client side Build apps that do voice chat, conference call, make phone calls Add click to chat to your web site Pass parameters when connecting

Slide 22

Slide 22 text

THANK YOU! Jeff Linwood, @jefflinwood, jlinwood@gmail.com