21
Building & Debugging Tools that Communicate Tim Milliron Director of Engineering twilio @timmilliron

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

  • Upload
    mark-a

  • View
    6.259

  • Download
    0

Embed Size (px)

DESCRIPTION

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

Citation preview

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

Building & DebuggingTools that Communicate

Tim MillironDirector of Engineering twilio @timmilliron

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

twilio: an API for Phones

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

Outgoing

using 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!");

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

Incoming

<Response> <Say>Welcome to the biz-spark meetup. Huzzah!</Say> <Sms>Thanks for calling the biz-spark meetup line.</Sms></Response>

Call: (415) 723-4BIZ

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

Incoming

<Response> <Say>Welcome to the biz-spark meetup. Huzzah!</Say> <Sms>Thanks for calling the biz-spark meetup line.</Sms></Response>

Call: (415) 723-4BIZ

twiml

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

How it works

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

How it works

<Response> ... </Response>

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

Debugging the Phone Grid

“We’re sorry, an application error

occurred.”

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

It’s just the internet

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

When in doubt, curl

curl http://demo.twilio.com/tim/bizsparkVoice.xml

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

When in doubt, curl

curl http://demo.twilio.com/tim/bizsparkVoice.xml

curl –u AC123:abcd -d “From:+14155551111” -d “To:+14158675309” -d “Body:Hi, Jenny” https://api.twilio.com/2010-04-01/Accounts/AC123/Calls

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

Debugging Tools

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

Debugging Tools

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

Debugging Tools

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

Debugging Tools

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

Eavesdropping on Yourself

var call = twilio.InitiateOutboundCall(”+14157234249”,”+14158675309”,"http://

example.com/eavesdrop.xml");

Calling our twilio number

(415) 723-4BIZ<Response>

<Say>…</Say></Response>

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

Eavesdropping on Yourself

var call = twilio.InitiateOutboundCall(”+14157234249”,”+14158675309”,"http://

example.com/eavesdrop.xml");

Calling our twilio number

eavesdrop.xml

(415) 723-4BIZ<Response>

<Say>…</Say></Response>

<Response> <Dial record=“true”>+14157234249</Dial></Response>

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

Entering Data at Yourself

(415) 723-4BIZ

var call = twilio.InitiateOutboundCall(”+14157234249”,”+14158675309”,"http://

example.com/senddata.xml");

Calling our twilio number

<Response><Gather

numDigits=4>…</Gather></Response>

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

Entering Data at Yourself

(415) 723-4BIZ

<Response> <Dial sendDigits=“1234”>+14157234249</Dial></Response>

var call = twilio.InitiateOutboundCall(”+14157234249”,”+14158675309”,"http://

example.com/senddata.xml");

Calling our twilio number

senddata.xml

<Response><Gather

numDigits=4>…</Gather></Response>

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

twilio: an API for Phones

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

Questions?