Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Twilioの簡単な説明

 Twilioの簡単な説明

Yusuke AONO

August 06, 2013
Tweet

More Decks by Yusuke AONO

Other Decks in Programming

Transcript

  1. ྉۚ w ແྉͰτϥΠΞϧΞΧ΢ϯτऔಘՄೳ w ి࿩൪߸ʢʣ͕ͭ࢖༻Մೳʹ w τϥΠΞϧظؒ͸جຊແྉ w ར༻ྉ͕ۚҰఆֹΛ௒͑ΔͱτϥΠΞϧऴྃ w

    ి࿩ʢ෼͋ͨΓʣɿൃ৴dԁɹண৴dԁ w 4.4ʢ௨͋ͨΓʣɿൃ৴dԁɹண৴ԁ w ి࿩൪߸ར༻ྉɿԁֹ݄ w IUUQUXJMJPLEEJXFCDPNQSJDF 13೥8݄6೔Ր༵೔
  2. #  ి࿩ @call  =  @client.account.calls.create(    :from  =>  '+14159341234',  

     :to  =>  '+18004567890',    :url  =>  'http://example.com/call-­‐handler' ) #  SMS @client.account.sms.messages.create(    :from  =>  '+14159341234',    :to  =>  '+16105557069',    :body  =>  'Hey  there!' ) 13೥8݄6೔Ր༵೔
  3. 5XJ.-ͱ͸ <?xml  version="1.0"  encoding="UTF-­‐8"?> <Response>        <Say  voice="woman">Please

     leave  a   message  after  the  tone.</Say>        <Record  maxLength="20"  /> </Response> ͜Μͳײ͡ͷ9.-ϑΝΠϧɻ ͜ͷྫͰ͸ɺঁੑͷ੠Ͱ୹͍Ξφ΢ϯεΛͨ͠ޙɺ ൃ৴ऀͷ੠Λ࠷௕ඵ࿥Ի͠·͢ IUUQKQUXJMJPDPNEPDTBQJUXJNM 13೥8݄6೔Ր༵೔
  4. 5XJ.-ͷੜ੒΋؆୯ response  =  Twilio::TwiML::Response.new  do  |r|    r.Say  'hello  there',

     :voice  =>  'woman' end <?xml  version="1.0"  encoding="UTF-­‐8"?> <Response>    <Say  voice="woman">hello  there</Say> </Response> ˣ 13೥8݄6೔Ր༵೔