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

  • 6,251 views
Uploaded on

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

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

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
6,251
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
3
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Building & Debugging Tools that CommunicateTim MillironDirector of Engineering twilio@timmilliron
  • 2. twilio: an API for Phones
  • 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. 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. 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. How it works
  • 7. How it works <Response> ... </Response>
  • 8. Debugging the Phone Grid “We’re sorry, an application error occurred.”
  • 9. It’s just the internet
  • 10. When in doubt, curlcurl http://demo.twilio.com/tim/bizsparkVoice.xml
  • 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. Debugging Tools
  • 13. Debugging Tools
  • 14. Debugging Tools
  • 15. Debugging Tools
  • 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. 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. 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. 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. twilio: an API for Phones
  • 21. Questions?