Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
Masashi Shinbara
4,814 views
Twilio入門 -Web アプリ編-
2015/09/30 TwilioJP-UG 大阪 第0回
Technology
◦
Read more
9
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 45
2
/ 45
3
/ 45
4
/ 45
5
/ 45
6
/ 45
7
/ 45
8
/ 45
9
/ 45
10
/ 45
11
/ 45
12
/ 45
13
/ 45
14
/ 45
15
/ 45
16
/ 45
17
/ 45
18
/ 45
19
/ 45
20
/ 45
21
/ 45
22
/ 45
23
/ 45
24
/ 45
25
/ 45
26
/ 45
27
/ 45
28
/ 45
29
/ 45
30
/ 45
31
/ 45
32
/ 45
33
/ 45
34
/ 45
35
/ 45
36
/ 45
37
/ 45
38
/ 45
39
/ 45
40
/ 45
41
/ 45
42
/ 45
43
/ 45
44
/ 45
45
/ 45
More Related Content
PDF
日本語消えたスライド
by
Masashi Shinbara
PDF
Twilio を使えば簡単にできる アプリケーションと電話/SMS連携
by
Masashi Shinbara
PDF
【Twilio client】twiliox azureハンズオン
by
twilioforkwc
PPTX
Twilio + OpenWeatherMap APIで天気モーニングコール
by
Mitsuhiro Yamashita
PDF
若手Webエンジニア勉強会公開用
by
Hiroki Nigorinuma
PDF
いまどきのPHP開発現場 -2015年秋-
by
Masashi Shinbara
PDF
認証機能で学ぶ Laravel 5 アプリケーション
by
Masashi Shinbara
PDF
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
by
Masashi Shinbara
日本語消えたスライド
by
Masashi Shinbara
Twilio を使えば簡単にできる アプリケーションと電話/SMS連携
by
Masashi Shinbara
【Twilio client】twiliox azureハンズオン
by
twilioforkwc
Twilio + OpenWeatherMap APIで天気モーニングコール
by
Mitsuhiro Yamashita
若手Webエンジニア勉強会公開用
by
Hiroki Nigorinuma
いまどきのPHP開発現場 -2015年秋-
by
Masashi Shinbara
認証機能で学ぶ Laravel 5 アプリケーション
by
Masashi Shinbara
レイヤードアーキテクチャを意識したPHPアプリケーションの構築
by
Masashi Shinbara
Viewers also liked
PDF
レイヤードアーキテクチャを意識した PHPアプリケーションの構築 ver2
by
Masashi Shinbara
PDF
Azure Websites で作るスケーラブルな PHP アプリケーション
by
Masashi Shinbara
PDF
先取り!PHP 7 と WordPress
by
Masashi Shinbara
PDF
リモートチームでうまくいく 〜 これから訪れる働き方の変革
by
Yoshihito Kuranuki
PDF
PHP Codeception テスト -- 日本語
by
Florent Batard
PDF
Vagrant で作る PHP 開発環境 [実践編]
by
Masashi Shinbara
PDF
開発現場で活用するVagrant
by
Masashi Shinbara
PDF
PhpStormを使おう --高槻からは快速急行が早くなります #jbugj
by
Hisateru Tanaka
PDF
新標準PSRに学ぶきれいなPHP
by
Yusuke Ando
レイヤードアーキテクチャを意識した PHPアプリケーションの構築 ver2
by
Masashi Shinbara
Azure Websites で作るスケーラブルな PHP アプリケーション
by
Masashi Shinbara
先取り!PHP 7 と WordPress
by
Masashi Shinbara
リモートチームでうまくいく 〜 これから訪れる働き方の変革
by
Yoshihito Kuranuki
PHP Codeception テスト -- 日本語
by
Florent Batard
Vagrant で作る PHP 開発環境 [実践編]
by
Masashi Shinbara
開発現場で活用するVagrant
by
Masashi Shinbara
PhpStormを使おう --高槻からは快速急行が早くなります #jbugj
by
Hisateru Tanaka
新標準PSRに学ぶきれいなPHP
by
Yusuke Ando
Similar to Twilio入門 -Web アプリ編-
PDF
20130927 MA9 東京ハッカソン発表資料
by
Joohoun Song
PDF
第0回 Twilio勉強会 with JAWS UG in 福岡
by
Youhei Iwasaki
PDF
Twilio serveless architecture
by
Kiminari Homma
PDF
Twilio api-jaws
by
Joohoun Song
PDF
Twilio API を PHP で触ってみよう
by
Masashi Shinbara
PDF
Twilio API 勉強会 Vol.12 - アイデアを元にTwilioの機能を試してみる会
by
Joohoun Song
PDF
Twilioハンズオン資料 鹿児島
by
Joohoun Song
PDF
Twilio TBS - 20140301
by
Joohoun Song
PPTX
Bluemixユーザー会発表資料 - デモ付き
by
twilioforkwc
PDF
fukuokaphp7 PHP x twilio
by
ichikaway
PDF
phpcon2013 PHP x twilio
by
ichikaway
PDF
AWSアイデアソン20150509
by
Noriyuki Koide
PDF
TwilioJP-UG 大阪 第0回 「IoTな時代に向けて クラウドサービスで電話を使いたおそう」オープニング
by
Hiroyuki Hiki
PDF
twilio x aws コミュニティトラック JAWS FESTA 2015
by
Youhei Iwasaki
PDF
Twilio jpug大阪(掲載用)20160227
by
Noriyuki Koide
PDF
IPメッセージングはこうやって実装するのだ!
by
Sakae Saito
PDF
TwilioJP-UG東京×Bluemixハンズオン
by
Eiki Sato
PDF
Twilio client for android
by
Hiasyoshi Suehiro
PPTX
Twilio API 勉強会 Vol.4
by
Joohoun Song
PDF
Twilioビジネスセミナー20140624
by
twilioforkwc
20130927 MA9 東京ハッカソン発表資料
by
Joohoun Song
第0回 Twilio勉強会 with JAWS UG in 福岡
by
Youhei Iwasaki
Twilio serveless architecture
by
Kiminari Homma
Twilio api-jaws
by
Joohoun Song
Twilio API を PHP で触ってみよう
by
Masashi Shinbara
Twilio API 勉強会 Vol.12 - アイデアを元にTwilioの機能を試してみる会
by
Joohoun Song
Twilioハンズオン資料 鹿児島
by
Joohoun Song
Twilio TBS - 20140301
by
Joohoun Song
Bluemixユーザー会発表資料 - デモ付き
by
twilioforkwc
fukuokaphp7 PHP x twilio
by
ichikaway
phpcon2013 PHP x twilio
by
ichikaway
AWSアイデアソン20150509
by
Noriyuki Koide
TwilioJP-UG 大阪 第0回 「IoTな時代に向けて クラウドサービスで電話を使いたおそう」オープニング
by
Hiroyuki Hiki
twilio x aws コミュニティトラック JAWS FESTA 2015
by
Youhei Iwasaki
Twilio jpug大阪(掲載用)20160227
by
Noriyuki Koide
IPメッセージングはこうやって実装するのだ!
by
Sakae Saito
TwilioJP-UG東京×Bluemixハンズオン
by
Eiki Sato
Twilio client for android
by
Hiasyoshi Suehiro
Twilio API 勉強会 Vol.4
by
Joohoun Song
Twilioビジネスセミナー20140624
by
twilioforkwc
More from Masashi Shinbara
PDF
How to learn Laravel5 application from Authentication
by
Masashi Shinbara
PDF
わかってるフレームワーク Laravel
by
Masashi Shinbara
PDF
ビルドサーバで使うDocker
by
Masashi Shinbara
PDF
Ansible ではじめるサーバ作業の自動化
by
Masashi Shinbara
PDF
PHPコードではなく PHPコードの「書き方」を知る
by
Masashi Shinbara
PDF
Heroku で作る スケーラブルな PHP アプリケーション
by
Masashi Shinbara
PDF
Vagrant体験入門
by
Masashi Shinbara
PDF
VagrantユーザのためのDocker入門
by
Masashi Shinbara
PDF
Laravel ユーザなら知っておくべきAuthオートログイン
by
Masashi Shinbara
PDF
キャラ立ちしたエンジニアになる!
by
Masashi Shinbara
PDF
Composer 再入門
by
Masashi Shinbara
PDF
Vagrant で PHP 開発環境を作る ハンズオン
by
Masashi Shinbara
PDF
いまどきのPHP
by
Masashi Shinbara
PDF
もう XAMPP / MAMP はいらない! Vagrant で作る PHP 開発環境
by
Masashi Shinbara
PDF
Vagrant を Web開発環境に使う
by
Masashi Shinbara
PDF
PHP 5.5 Zend OPcache
by
Masashi Shinbara
PDF
サーバの防災訓練
by
Masashi Shinbara
PDF
Kansai PHP Users Group 2012年活動報告
by
Masashi Shinbara
KEY
10分で分かる最近のCakePHP
by
Masashi Shinbara
How to learn Laravel5 application from Authentication
by
Masashi Shinbara
わかってるフレームワーク Laravel
by
Masashi Shinbara
ビルドサーバで使うDocker
by
Masashi Shinbara
Ansible ではじめるサーバ作業の自動化
by
Masashi Shinbara
PHPコードではなく PHPコードの「書き方」を知る
by
Masashi Shinbara
Heroku で作る スケーラブルな PHP アプリケーション
by
Masashi Shinbara
Vagrant体験入門
by
Masashi Shinbara
VagrantユーザのためのDocker入門
by
Masashi Shinbara
Laravel ユーザなら知っておくべきAuthオートログイン
by
Masashi Shinbara
キャラ立ちしたエンジニアになる!
by
Masashi Shinbara
Composer 再入門
by
Masashi Shinbara
Vagrant で PHP 開発環境を作る ハンズオン
by
Masashi Shinbara
いまどきのPHP
by
Masashi Shinbara
もう XAMPP / MAMP はいらない! Vagrant で作る PHP 開発環境
by
Masashi Shinbara
Vagrant を Web開発環境に使う
by
Masashi Shinbara
PHP 5.5 Zend OPcache
by
Masashi Shinbara
サーバの防災訓練
by
Masashi Shinbara
Kansai PHP Users Group 2012年活動報告
by
Masashi Shinbara
10分で分かる最近のCakePHP
by
Masashi Shinbara
Twilio入門 -Web アプリ編-
1.
@shin1x1 2015/09/30 TwilioJP-UG 大阪
第0回 Twilio 入門 - Webアプリ編 -
2.
TwilioとWebアプリの連携
3.
TwilioとWebアプリ (c) 2015 Masashi
Shinbara @shin1x1 • TwilioとWebアプリの関係性 • 電話との接続は、Twilio • TwilioとWebアプリが通信して、動作を決定
4.
(c) 2015 Masashi
Shinbara @shin1x1 電話を受ける
5.
(c) 2015 Masashi
Shinbara @shin1x1 電話を受ける 図図 - twilio 図図 - twilio Twilio Webサーバ 050-xxxx-xxxx
6.
(c) 2015 Masashi
Shinbara @shin1x1 電話を受ける 図図 - twilio 図図 - twilio HTTPリクエスト
7.
(c) 2015 Masashi
Shinbara @shin1x1 電話を受ける 図図 - twilio 図図 - twilio 処理を実行 TwiML生成
8.
(c) 2015 Masashi
Shinbara @shin1x1 電話を受ける 図図 - twilio 図図 - twilio TwiMLを返す
9.
(c) 2015 Masashi
Shinbara @shin1x1 電話を受ける 図図 - twilio 図図 - twilio 音声再生 電話を転送 入力受付等々
10.
TwiML (c) 2015 Masashi
Shinbara @shin1x1 • Twilio独自拡張のXML • Twilioへ命令を指示する • 音声再生、録音、入力受付、SMS送信等々
11.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="woman" language="ja-JP">メッセージ</Say> <Record maxLength="20" /> </Response>
12.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="woman" language="ja-JP">メッセージ</Say> <Record maxLength="20" /> </Response> Sayタグ(音声再生)
13.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="woman" language="ja-JP">メッセージ</Say> <Record maxLength="20" /> </Response> Recordタグ(録音)
14.
(c) 2015 Masashi
Shinbara @shin1x1 電話をかける
15.
(c) 2015 Masashi
Shinbara @shin1x1 電話をかける 図図 - twilio 図図 - twilio Twilio Webサーバ REST API 電話番号を指示 電話
16.
(c) 2015 Masashi
Shinbara @shin1x1 電話をかける 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 電話をかける!
17.
(c) 2015 Masashi
Shinbara @shin1x1 電話をかける 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 通話に利用する TwiML取得
18.
(c) 2015 Masashi
Shinbara @shin1x1 電話をかける 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 TwiMLに 書かれた処理を行う 音声再生 入力受付 録音など TwiMLを返す
19.
TwilioとWebアプリ (c) 2015 Masashi
Shinbara @shin1x1 • TwilioとWebアプリとの間は、HTTPの世界 • HTTPで受けて、TwiMLを返す • 通常のWebアプリと同じ
20.
サンプルアプリケーション
21.
伝言アプリ (c) 2015 Masashi
Shinbara @shin1x1 • 電話がかかってくる • メッセージを聞く • プッシュフォンを押す => 1なら終了、それ以外なら、もう一度再生 • 誰が聞いたかを記録
22.
(c) 2015 Masashi
Shinbara @shin1x1 • PHP + Laravel + Heroku • twilio-php (PHP版SDK) • コードは、GitHub で公開してます。 伝言アプリ https://github.com/shin1x1/twiliojp-osaka-demo
23.
(c) 2015 Masashi
Shinbara @shin1x1 伝言アプリ DEMO
24.
(c) 2015 Masashi
Shinbara @shin1x1 電話をかける 図図 - twilio 図図 - twilio Twilio Webサーバ REST API実行 電話
25.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 電話をかける! 電話をかける
26.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 音声再生 入力受付 電話 電話をかける TwiML取得
27.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="man" language="ja-JP"> ようこそ!TwilioUG-Osakaへ。楽しんで下さいね。 </Say> <Gather timeout="10" numDigits="1" action="/twilio/gathering"> <Say voice="women" language="ja-JP"> 完了するには、1、を、もう一度聞くには、2、をプッシュして下さい。 </Say> </Gather> </Response>
28.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="man" language="ja-JP"> ようこそ!TwilioUG-Osakaへ。楽しんで下さいね。 </Say> <Gather timeout="10" numDigits="1" action="/twilio/gathering"> <Say voice="women" language="ja-JP"> 完了するには、1、を、もう一度聞くには、2、をプッシュして下さい。 </Say> </Gather> </Response>
29.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="man" language="ja-JP"> ようこそ!TwilioUG-Osakaへ。楽しんで下さいね。 </Say> <Gather timeout="10" numDigits="1" action="/twilio/gathering"> <Say voice="women" language="ja-JP"> 完了するには、1、を、もう一度聞くには、2、をプッシュして下さい。 </Say> </Gather> </Response>
30.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 自動音声が流れる 音声再生
31.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 入力待ち プッシュフォン入力
32.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 プッシュフォンを押す プッシュフォン入力
33.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 入力された番号を通知 プッシュフォン入力
34.
(c) 2015 Masashi
Shinbara @shin1x1 • Twilioサーバから、POSTリクエスト • Digits = 入力した値 • To = 入力した電話の電話番号 プッシュフォン入力
35.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 DBに記録 1を入力(終了) 終了音声を流す TwiML
36.
TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Say
voice="women" language="ja-JP"> 完了しました。電話を切って下さい。 </Say> </Response>
37.
(c) 2015 Masashi
Shinbara @shin1x1 図図 - twilio 図図 - twilio Twilio Webサーバ 電話 終了音声が流れる 1を入力(終了)
38.
Webアプリ連携の注意点
39.
開発での注意点 (c) 2015 Masashi
Shinbara @shin1x1 • 外部サービスとの連携である • 連携前に検証しておく(自動テストなど) • 自動テストでは、モックを利用 • 連携箇所ではログの記録
40.
Twilioからのリクエストを検証 (c) 2015 Masashi
Shinbara @shin1x1 • HTTPS(自己証明書はNG) • Basic / Digest認証 • リクエストのバリデーション (HMAC-SHA1署名検証) (SDKで対応可)
41.
困ったら (c) 2015 Masashi
Shinbara @shin1x1 http://twilio.kddi-web.com/document/
42.
困ったら (c) 2015 Masashi
Shinbara @shin1x1 https://jp.twilio.com/user/account/log/calls
43.
困ったら (c) 2015 Masashi
Shinbara @shin1x1 https://twiliojp-ug.doorkeeper.jp
44.
まとめ (c) 2015 Masashi
Shinbara @shin1x1 • HTTPとTwiMLで連携 • Webアプリ、Twilio、電話の関係性を把握 • 外部システム連携を意識して開発
45.
@shin1x1 (c) 2015 Masashi
Shinbara @shin1x1
Download