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

Similar to Getting Started with Twilio (20)

PPTX
Real time voice call integration - Confoo 2012
Michael Peacock
 
PPTX
How to build a SaaS solution in 60 days
Brett McLain
 
PPT
VoIP Drupal Framework DrupalCon Prague
Tamer Zoubi
 
PPT
presentation slides
webhostingguy
 
PDF
How to Build a Serverless Chatbot for $0?
Mobile Monday Srbija
 
PPTX
Tech campmemphis slides_post_session
Stewart Whaley
 
PDF
Titanium #MDS13
Fokke Zandbergen
 
PPTX
DevNet @TAG - Spark & Tropo APIs - Milan/Rome May 2016
Cisco DevNet
 
PPTX
Supermondays twilio
Michael Peacock
 
PPTX
Commsverse 2022 Kai Stenberg.pptx
Kai Stenberg
 
PPTX
Build your first Chatbot
Nadim GOUIA
 
PDF
Bluemix and watson overview - Rencontres IBM et l'Ecole Polytechnique - 3 nov...
Yves LE CLEACH
 
PDF
Building a Great Web API - Evan Cooke - QCON 2011
Twilio Inc
 
PPT
International and European SEO - Pubcon 2008
Ralf Schwoebel
 
PDF
Modern Web Development in 2015
Oliver N
 
PPTX
SignalR and GroomingPoker
twinklekumarp
 
PPTX
Cisco APIs: An Interactive Assistant for the Web2Day Developer Conference
Cisco DevNet
 
PDF
Build a great conversationalist using Azure Bot Service 2018
Radoslav Gatev
 
KEY
Chrome Web Store に登録してみた
Kosei Moriyama
 
PDF
Hacking sites for fun and profit
David Stockton
 
Real time voice call integration - Confoo 2012
Michael Peacock
 
How to build a SaaS solution in 60 days
Brett McLain
 
VoIP Drupal Framework DrupalCon Prague
Tamer Zoubi
 
presentation slides
webhostingguy
 
How to Build a Serverless Chatbot for $0?
Mobile Monday Srbija
 
Tech campmemphis slides_post_session
Stewart Whaley
 
Titanium #MDS13
Fokke Zandbergen
 
DevNet @TAG - Spark & Tropo APIs - Milan/Rome May 2016
Cisco DevNet
 
Supermondays twilio
Michael Peacock
 
Commsverse 2022 Kai Stenberg.pptx
Kai Stenberg
 
Build your first Chatbot
Nadim GOUIA
 
Bluemix and watson overview - Rencontres IBM et l'Ecole Polytechnique - 3 nov...
Yves LE CLEACH
 
Building a Great Web API - Evan Cooke - QCON 2011
Twilio Inc
 
International and European SEO - Pubcon 2008
Ralf Schwoebel
 
Modern Web Development in 2015
Oliver N
 
SignalR and GroomingPoker
twinklekumarp
 
Cisco APIs: An Interactive Assistant for the Web2Day Developer Conference
Cisco DevNet
 
Build a great conversationalist using Azure Bot Service 2018
Radoslav Gatev
 
Chrome Web Store に登録してみた
Kosei Moriyama
 
Hacking sites for fun and profit
David Stockton
 

Recently uploaded (20)

PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
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