$30 off During Our Annual Pro Sale. View Details »

Voice & SMS For Your Apps - AirConf 2014

Voice & SMS For Your Apps - AirConf 2014

Talk I gave for AirConf 2014 on how to use Twilio to add voice and SMS capabilities to your web and mobile applications.

Jeff Linwood

August 06, 2014
Tweet

More Decks by Jeff Linwood

Other Decks in Technology

Transcript

  1. VOICE & SMS FOR YOUR APPS
    Jeff Linwood, Biscotti Labs

    AirConf 2014
    @jefflinwood

    http://www.biscottilabs.com/

    http://www.jefflinwood.com/

    View Slide

  2. TODAY’S TALK
    Quick Intro

    Discussion of Twilio API

    Getting Started with Twilio

    Sending & Receiving SMS

    Sending & Receiving Voice

    Twilio Client

    View Slide

  3. 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

    View Slide

  4. 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

    View Slide

  5. DIFFERENT USER INTERFACES
    Desktop Web

    Mobile (Web or App)

    Email

    Voice

    Text Message (SMS)

    View Slide

  6. GETTING STARTED WITH TWILIO

    View Slide

  7. 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)

    View Slide

  8. TWILIO DASHBOARD

    View Slide

  9. 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)

    View Slide

  10. 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

    View Slide

  11. TWILIO MARKUP LANGUAGE
    Twilio Markup Language - TwiML - XML

    Verb-based

    https://www.twilio.com/docs/api/twiml

    View Slide

  12. 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

    View Slide

  13. CONFERENCE CALL EXAMPLE
    Served directly from a web server

    Call (512)-969-2045 to try it

    Configured in TwiML App

    View Slide

  14. USING TWILIO IN YOUR WEB APP

    View Slide

  15. 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

    View Slide

  16. 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

    View Slide

  17. MAKING OUTBOUND CALLS

    View Slide

  18. SENDING SMS MESSAGES

    View Slide

  19. RECEIVING SMS MESSAGES

    View Slide

  20. TWILIO CLIENT - VOIP
    Web/Javascript

    iOS

    Android

    PhoneGap (https://github.com/
    jefflinwood/
    twilio_client_phonegap)

    View Slide

  21. 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

    View Slide

  22. THANK YOU!
    Jeff Linwood, @jefflinwood, [email protected]

    View Slide