Getting Started with Twilio

8,931 views

Published on

Curious about adding voice menus and phone interactivity to your web apps? Twilio makes it easy and affordable to POTS-enable any app with just a few lines of code. Presentation references the twiliokit app on github.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,931
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
40
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide




















  • Getting Started with Twilio

    1. 1. CodeStock is proudly partnered with: RecruitWise and Staff with Excellence - www.recruitwise.jobs Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock 503 This session is great! For more information on sending feedback using Twitter while at CodeStock, please see the “CodeStock README” in your CodeStock guide.
    2. 2. Introduction to Twilio Michael Kimsal, WebDev Publishing
    3. 3. FAT PENGUIN
    4. 4. Introduction to me :) • Web development since 1996 • Mostly PHP, with some ASP, Perl and Groovy over the years • Publisher of GroovyMag and JSMag • Host of webdevradio.com podcast
    5. 5. What is Twilio? • Phone service in the sky • Akin to a hosted Asterisk • No hardware costs - pay as you go • SMS,Voice calls, Automatic translations • Built on the Amazon cloud
    6. 6. What can Twilio do? • Phone recordings • Conference calls • Phone polls and voting • Custom phone trees
    7. 7. What can’t Twilio do? • Voice recognition • No way to deal with “say yes” type apps • Establish numbers outside US • Can *call* outside US • Probably other things I haven’t hit yet :)
    8. 8. OpenVBX • Recently announced openvbx.org, a turnkey open source PHP framework for managing a phone system • Mixed reaction - seen as competing with developer community a bit
    9. 9. How does it work? • register for account • $30 sandbox credit • sandbox dial in number • uses acct-specific PIN code (only for sandbox number)
    10. 10. How does it work? • Map incoming number to URL • Twilio server makes requests to your URL • Your server app responds with TwiML, XML for Twilio
    11. 11. Account Dashboard
    12. 12. Connect # to URL
    13. 13. Twilio POST to you... $_POST[‘CallGuid’] $_POST[‘Caller’] $_POST[‘Called’] $_POST[‘CallStatus’] $_POST[‘CallerCity’] and more... http://www.twilio.com/docs/api/2008-08-01/twiml/twilio_request
    14. 14. You send back TwiML <?xml version="1.0" encoding="UTF-8" ?> <Response> <Say>Hello World</Say> <Play> http://api.twilio.com/Cowbell.mp3 </Play> </Response>
    15. 15. Twilio Verbs <Gather> <Play> <Dial> <Conference> <Record> <Redirect> <Redirect> <Hangup> <Sms>
    16. 16. Let’s look at code • Will be demoing PHP code in with Zend Framework • http://bit.ly/a7bT8h - good example of ASP.NET MVC app with Twilio services • Twilio has good Ruby and PHP libraries • Has others, not as full featured yet
    17. 17. Code!
    18. 18. Questions?
    19. 19. Thank you Michael Kimsal 919 827 4724 michaelkimsal.com/blog @mgkimsal

    ×