SlideShare una empresa de Scribd logo
1 de 20
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.
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

Más contenido relacionado

Similar a Getting Started with Twilio

Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
Michael Peacock
 

Similar a Getting Started with Twilio (20)

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

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

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.
  • 2.
  • 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

Notas del editor