BizSpark SF Lightning Talk: "Phone and SMS Gateways" by Tim Milliron

6,492 views
6,376 views

Published on

Presentation from November 2011 BizSparkSF Meetup entitled "Tools, Tools and More Tools!" http://www.bizsparksf.com/events/34653282/

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
6,492
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

BizSpark SF Lightning Talk: "Phone and SMS Gateways" by Tim Milliron

  1. 1. Building & Debugging Tools that CommunicateTim MillironDirector of Engineering twilio@timmilliron
  2. 2. twilio: an API for Phones
  3. 3. Outgoingusing Twilio;var twilio = new TwilioRestClient("accountSid", "authToken");var call = twilio.InitiateOutboundCall("+1555456790", "+15551112222", "http://example.com/handleCall");var msg = twilio.SendSmsMessage("+15551112222", "+15553334444", "Hi BizSpark!");
  4. 4. Incoming Call: (415) 723-4BIZ<Response> <Say>Welcome to the biz-spark meetup. Huzzah!</Say> <Sms>Thanks for calling the biz-spark meetup line.</Sms></Response>
  5. 5. Incoming Call: (415) 723-4BIZ<Response> <Say>Welcome to the biz-spark meetup. Huzzah!</Say> <Sms>Thanks for calling the biz-spark meetup line.</Sms></Response> twiml
  6. 6. How it works
  7. 7. How it works <Response> ... </Response>
  8. 8. Debugging the Phone Grid “We’re sorry, an application error occurred.”
  9. 9. It’s just the internet
  10. 10. When in doubt, curlcurl http://demo.twilio.com/tim/bizsparkVoice.xml
  11. 11. When in doubt, curlcurl http://demo.twilio.com/tim/bizsparkVoice.xmlcurl –u AC123:abcd -d “From:+14155551111” -d “To:+14158675309” -d “Body:Hi, Jenny” https://api.twilio.com/2010-04-01/Accounts/AC123/Calls
  12. 12. Debugging Tools
  13. 13. Debugging Tools
  14. 14. Debugging Tools
  15. 15. Debugging Tools
  16. 16. Eavesdropping on Yourself Calling our twilio numbervar call = twilio.InitiateOutboundCall( ”+14157234249”, ”+14158675309”, "http://example.com/eavesdrop.xml"); (415) 723-4BIZ <Response> <Say>…</Say> </Response>
  17. 17. Eavesdropping on Yourself Calling our twilio numbervar call = twilio.InitiateOutboundCall( ”+14157234249”, ”+14158675309”, "http://example.com/eavesdrop.xml"); eavesdrop.xml <Response> <Dial record=“true”>+14157234249</Dial> </Response> (415) 723-4BIZ <Response> <Say>…</Say> </Response>
  18. 18. Entering Data at Yourself Calling our twilio numbervar call = twilio.InitiateOutboundCall( ”+14157234249”, ”+14158675309”, "http://example.com/senddata.xml"); (415) 723-4BIZ <Response> <Gather numDigits=4>…</Gather> </Response>
  19. 19. Entering Data at Yourself Calling our twilio numbervar call = twilio.InitiateOutboundCall( ”+14157234249”, ”+14158675309”, "http://example.com/senddata.xml"); senddata.xml <Response> <Dial sendDigits=“1234”>+14157234249</Dial> </Response> (415) 723-4BIZ <Response> <Gather numDigits=4>…</Gather> </Response>
  20. 20. twilio: an API for Phones
  21. 21. Questions?

×