SlideShare a Scribd company logo
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.
Getting Started with Twilio
Introduction to Twilio
   Michael Kimsal, WebDev Publishing
FAT PENGUIN
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
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
What can Twilio do?

• Phone recordings
• Conference calls
• Phone polls and voting
• Custom phone trees
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 :)
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
How does it work?

• register for account
• $30 sandbox credit
• sandbox dial in number
 • uses acct-specific PIN code (only for
    sandbox number)
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
Account Dashboard
Connect # to URL
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
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>
Twilio Verbs
<Gather>            <Play>

<Dial>              <Conference>

<Record>            <Redirect>

<Redirect>

<Hangup>

<Sms>
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
Code!
Questions?
Thank you

Michael Kimsal
919 827 4724
michaelkimsal.com/blog
@mgkimsal

More Related Content

PDF
Make Money with WordPress - Part 1: Platforms
PPS
Website hosting
PPTX
Place X
PDF
Dark Fairytales from a Phisherman
KEY
Going Independent - making it as a freelance web professional
PDF
Text Message Marketing Report: Moto Message
Make Money with WordPress - Part 1: Platforms
Website hosting
Place X
Dark Fairytales from a Phisherman
Going Independent - making it as a freelance web professional
Text Message Marketing Report: Moto Message

Similar to Getting Started with Twilio (20)

PPTX
Real time voice call integration - Confoo 2012
PPTX
How to build a SaaS solution in 60 days
PPT
VoIP Drupal Framework DrupalCon Prague
PPT
presentation slides
PDF
How to Build a Serverless Chatbot for $0?
PPTX
Tech campmemphis slides_post_session
PDF
Titanium #MDS13
PPTX
DevNet @TAG - Spark & Tropo APIs - Milan/Rome May 2016
PPTX
Supermondays twilio
PPTX
Commsverse 2022 Kai Stenberg.pptx
PPTX
Build your first Chatbot
PDF
Bluemix and watson overview - Rencontres IBM et l'Ecole Polytechnique - 3 nov...
PDF
Building a Great Web API - Evan Cooke - QCON 2011
PPT
International and European SEO - Pubcon 2008
PDF
Modern Web Development in 2015
PPTX
SignalR and GroomingPoker
PPTX
Cisco APIs: An Interactive Assistant for the Web2Day Developer Conference
PDF
Build a great conversationalist using Azure Bot Service 2018
KEY
Chrome Web Store に登録してみた
PDF
Hacking sites for fun and profit
Real time voice call integration - Confoo 2012
How to build a SaaS solution in 60 days
VoIP Drupal Framework DrupalCon Prague
presentation slides
How to Build a Serverless Chatbot for $0?
Tech campmemphis slides_post_session
Titanium #MDS13
DevNet @TAG - Spark & Tropo APIs - Milan/Rome May 2016
Supermondays twilio
Commsverse 2022 Kai Stenberg.pptx
Build your first Chatbot
Bluemix and watson overview - Rencontres IBM et l'Ecole Polytechnique - 3 nov...
Building a Great Web API - Evan Cooke - QCON 2011
International and European SEO - Pubcon 2008
Modern Web Development in 2015
SignalR and GroomingPoker
Cisco APIs: An Interactive Assistant for the Web2Day Developer Conference
Build a great conversationalist using Azure Bot Service 2018
Chrome Web Store に登録してみた
Hacking sites for fun and profit
Ad

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation theory and applications.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
KodekX | Application Modernization Development
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Cloud computing and distributed systems.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Encapsulation theory and applications.pdf
Review of recent advances in non-invasive hemoglobin estimation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
Unlocking AI with Model Context Protocol (MCP)
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Monthly Chronicles - July 2025
Understanding_Digital_Forensics_Presentation.pptx
KodekX | Application Modernization Development
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
MYSQL Presentation for SQL database connectivity
Cloud computing and distributed systems.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Ad

Getting Started with Twilio

  • 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.
  • 3. Introduction to Twilio Michael Kimsal, WebDev Publishing
  • 5. 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
  • 6. 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
  • 7. What can Twilio do? • Phone recordings • Conference calls • Phone polls and voting • Custom phone trees
  • 8. 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 :)
  • 9. 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
  • 10. How does it work? • register for account • $30 sandbox credit • sandbox dial in number • uses acct-specific PIN code (only for sandbox number)
  • 11. 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
  • 14. 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
  • 15. 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>
  • 16. Twilio Verbs <Gather> <Play> <Dial> <Conference> <Record> <Redirect> <Redirect> <Hangup> <Sms>
  • 17. 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
  • 18. Code!
  • 20. Thank you Michael Kimsal 919 827 4724 michaelkimsal.com/blog @mgkimsal