Pro Yearly is on sale from $80 to $50! »

UG信州勉強会資料

 UG信州勉強会資料

2019/8/31に開催されたTwilio-UG信州 x SORACOM-UG信州合同勉強会で使用したTwilioの紹介資料となります。

5448f8c3e8571ba245c70536e9c8cd9a?s=128

Katsumi Takahashi

August 31, 2019
Tweet

Transcript

  1. 403"$0.#VUUPOϋϯζΦϯ
 5XJMJPͷ͝঺հ

  2. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 2

    Evangelist Katsumi Takahashi
 KDDI Web Communications Inc. Twilio Division facebook: katsumi.takahashi Twitter: _katsumi github: mobilebiz qiita: mobilebiz #赤い芸人 すみません。今日、名刺ないですw
  3. Copyright (C) KDDI Web Communications Inc. All Rights Reserved %PZPVLOPX5XJMJP

  4. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 4

    56.25sps
  5. © 2009 - 2014 Twilio, Inc. All rights reserved. ABOUT

    US ʮτΡΠϦΦʯͱൃԻ͠·͢ɻ 2008೥ αʔϏε։࢝ ຊࣾ͸αϯϑϥϯγεί ϩϯυϯɺχϡʔϤʔΫɺϚυ Ϧʔυɺ߳ߓɺγϯΨϙʔϧͳ Ͳɺੈք24ϲॴʹڌ఺͋Γ 2016೥6݄ʹIPOʢNYSEʣ 2019೥8݄30೔೔ຊ๏ਓઃཱ
  6. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 6

  7. ABOUT US Twilio's mission is to fuel the future of

    communications.
  8. 5XJMJP͕ఏڙ͢ΔαʔϏε

  9. S O L U T I O N S I

    D E N T I T Y I N T E L L I G E N C E I N T E R A C T I O N S C H A N N E L A P I S S U P E R N E T W O R K R U N T I M E A u t h y V e r i f y L o o k u p A u t o p i l o t T a s k R o u t e r C o n v e r s a t i o n s P r o x y S M S C h a t E m a i l V o i c e V i d e o W h a t s A p p F a c e b o o k 
 M e s s e n g e r L I N E P h o n e N u m b e r s S h o r t C o d e s I n t e r c o n n e c t S I P I o T S I M S t u d i o F u n c t i o n s A s s e t s D e b u g g e r C L I S D K T w i l i o F l e x M a r k e t i n g C a m p a i g n s
  10. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 10

    Aug 4 Twilio Champions Summit Aug 5 Super Class Aug 6 SIGNAL Day1 Aug 7 SIGNAL Day2 SIGNAL 2019 @ Moscone West 20⼈以上の⽇本⼈が参加!
  11. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 11

    Twilio HQ Moscone West
  12. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 12

    MACKLEMORE
  13. New Products and Special Announcements

  14. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 14

  15. TWILIO CLIͱ͸ʁ • CLI : Command Line Interface • ࠷৽όʔδϣϯ͸1.4.2

    • TwilioͷAPIΛίϚϯυϥΠϯ ͔Βૢ࡞͢ΔͨΊͷπʔϧ • ηοτΞοϓํ๏͸ҎԼͷ URLΛࢀর
 https://www.twilio.com/docs/ twilio-cli/quickstart
  16. ίϚϯυҰཡ $0.."/% આ໌ BQJ "1*΁ͷΞΫηε͕ՄೳͰ͢ BVUPDPNQMFUF $-*ͷΠϯετʔϧΛ׬ྃͤ͞·͢ EFCVHHFS ੜ੒͞ΕͨσόοάΠϕϯτΛදࣔͤ͞·͢ FNBJM

    4FOE.BJMܦ༝ͰϝʔϧΛૹ৴͠·͢ GFFECBDL $-*ͷ։ൃνʔϜʹϑΟʔυόοΫΛૹΓ·͢ IFMQ ίϚϯυͷ࢖͍ํΛදࣔ͠·͢ MPHJO ͢Ͱʹ͋Δ"DDPVOU4JEΛ࢖ͬͯϓϩϑΝΠϧΛ࡞Γ·͢ QIPOFOVNCFST ి࿩൪߸Λ؅ཧ͠·͢ QMVHJOT ϓϥάΠϯΛΠϯετʔϧ͠·͢ QSPpMFT ࡞੒͞ΕͨϓϩϑΝΠϧͷ੾Γସ͑Λߦ͍·͢ Ver. 1.4.2
  17. TWILIO CLI Plugins • Twilio CLIΛ֦ுͤ͞ΔͨΊͷϓϥάΠϯ͕༻ҙ͞Ε͍ͯ·͢ɻ • ݱ࣌఺Ͱ͸ҎԼͷϓϥάΠϯ͕༻ҙ͞Ε͍ͯ·͢ɻ • @twilio-labs/plugin-serverless

    1.0.2
 ϩʔΧϧ։ൃ؀ڥͷαϙʔτɺσόοά΍σϓϩΠΛՄೳʹ͠·͢ɻ • @twilio-labs/plugin-watch 2.0.0
 ίʔϧɺSMSΛ؂ࢹͯ͠ɺ1ඵຖʹը໘্ʹදࣔ͠·͢ɻ • @twilio-labs/plugin-token 2.0.0
 νϟοταʔϏεͷτʔΫϯͷ؅ཧ͕Ͱ͖·͢ɻ • ΦϦδφϧͷϓϥάΠϯΛ։ൃ͢Δ͜ͱ΋Ͱ͖·͢ɻ
  18. Copyright (C) KDDI Web Communications Inc. All Rights Reserved %&.0

    Twilio CLI CLIで電話をかけよう
  19. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 19

  20. Media Streamsͱ͸ʁ • ϦΞϧλΠϜʹԻ੠ετϦʔϜʹ ΞΫηε • WebSocketΛ࢖ͬͯαʔόʔαΠ υͰԻ੠ͷऔΓग़͕͠Մೳ • ϦΞϧλΠϜͷจࣈى͜͠΍ࣗવ

    ݴޠղੳɺײ৘෼ੳͳͲʹԠ༻ • TwiMLͷ<Stream>ಈࢺ΍Studioͷ ΢ΟδΣοτܦ༝Ͱར༻ • ྉۚ͸ $0.004 / ෼
  21. <Stop> <Stream name=“stream_1” /> </Stop> 終了 <Start> <Stream name=“stream_1” url=“wss://mystream.ngrok.io/twiml"

    /> </Start> 開始 Streamのオプションパラメータ track: inbound_track(default) / outbound_track / both_tracks statusCallback: ετϦʔϜͷ։࢝ͱऴྃ࣌ʹίʔϧόοΫՄೳ TwiMLを使ったストリームの取り出し
  22. Twilio Studioを使ったストリームの取り出し Fork Stream Widgetが新設

  23. Copyright (C) KDDI Web Communications Inc. All Rights Reserved %&.0

    Keyword Detection with IBM Cloud
  24. ϘλϯY5XJMJP

  25. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 通知系サービスとして使う感じですね

    電話 SMS LINE
  26. 5XJMJPΛ࢖ͬͨՍిͷํ๏

  27. CLI - Calls • twilio api:core:calls:create --to +81XXXXXXXXXX --from +81503196XXXX

    ̶url https://demo.twilio.com/welcome • urlは応答後のTwiML取得先 • toは相⼿先番号 • fromはTwilioで取得した番号
  28. REST API - Calls • api.twilo.com/2010-04-01/Accounts/{AccountSid}/Calls • Docs: https://jp.twilio.com/docs/voice/api/call •

    urlは応答後のTwiML取得先 • toは相⼿先番号 • fromはTwilioで取得した番号
  29. REST API - Flows.Executions • studio.twilio.com/v1/Flows/{FWXXXX}/Executions • Docs: https://jp.twilio.com/docs/studio/rest-api/execution •

    toとfromは必須パラメータ • 発信作業はStudio内で実⾏
  30. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 30

  31. Copyright (C) KDDI Web Communications Inc. All Rights Reserved 31

    ということで、今⽇の僕の仕事は終わ りましたw ハンズオンで電話かけたい⼈がいれ ば、声かけてください。
  32. Fuel the future of communications.