Enviar pesquisa
Carregar
201811 Twilio で FAX 試した
•
1 gostou
•
1,190 visualizações
J
junichim
Seguir
2018/11/10 開催 第19回伊勢IT交流会 with GCPUG Mie でのLT資料 https://iseit.connpass.com/event/103445/
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 26
Baixar agora
Baixar para ler offline
Recomendados
Yakusuru 資料
Yakusuru 資料
Cube01
Comparo Event 07192011
Comparo Event 07192011
ビズーン株式会社
202201 Wsl2 経由での cron + rsnapshot によるバックアップ
202201 Wsl2 経由での cron + rsnapshot によるバックアップ
junichim
201912 LINEボットからラズパイカメラで撮影
201912 LINEボットからラズパイカメラで撮影
junichim
201907 アーバンデータチャレンジのご紹介(三重ブロック)
201907 アーバンデータチャレンジのご紹介(三重ブロック)
junichim
201810 オープンデータの活用について ITC三重 10月定例会
201810 オープンデータの活用について ITC三重 10月定例会
junichim
201806 hugo で静的サイト作ってみた
201806 hugo で静的サイト作ってみた
junichim
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Recomendados
Yakusuru 資料
Yakusuru 資料
Cube01
Comparo Event 07192011
Comparo Event 07192011
ビズーン株式会社
202201 Wsl2 経由での cron + rsnapshot によるバックアップ
202201 Wsl2 経由での cron + rsnapshot によるバックアップ
junichim
201912 LINEボットからラズパイカメラで撮影
201912 LINEボットからラズパイカメラで撮影
junichim
201907 アーバンデータチャレンジのご紹介(三重ブロック)
201907 アーバンデータチャレンジのご紹介(三重ブロック)
junichim
201810 オープンデータの活用について ITC三重 10月定例会
201810 オープンデータの活用について ITC三重 10月定例会
junichim
201806 hugo で静的サイト作ってみた
201806 hugo で静的サイト作ってみた
junichim
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
Mais conteúdo relacionado
Destaque
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
Destaque
(20)
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
201811 Twilio で FAX 試した
1.
Twilio で FAX
試した 2018/11/10 第19回伊勢IT交流会 with GCPUG Mie 森 純一
2.
今度事務所を引っ越します • ネットは光の予定 • 電話とFAXどうしようか?
3.
ひかり電話? • ひかり電話でいいんじゃない? • でも、仕事のやり取りはほとんど携帯電話 •
わずかな月額料金とはいえ、なんかいや
4.
むかしTwilioって聞いたなー • 電話を制御するサービスだっけ?(雑) • FAX使えるならこれがいいんじゃない? •
FAX機器も不要になりそうだし
5.
調べると • 電話番号を購入(貸与)できるっぽい • 電話番号なんで、音声通話もFAXもOK •
ただ、FAXはβ版 • 1番号月額100円(税抜) • 2つ借りても某ひかり電話より安い?
6.
試す価値ありそう
7.
こうできたらいいな • 電話番号を2つ借りる(音声通話用、FAX用) • 音声通話用は実質留守番電話 •
着信があったら、通知(メール?Slack?) • FAXも受信があったら通知 • FAXの文面もPDF等で通知と一緒に送りたい • FAXの送信は、スキャンしたPDFを送るのでOK
8.
さっそく無料トライアル 始めます
9.
開始直後からはまった・・・ • 無料トライアル開始直後、電話番号の購入方法 がわからなくてずいぶんさまよった • 最初にプロジェクトを作る必要があった •
チュートリアルの説明とずれてる
10.
気を取りなおして
11.
まず音声通話(留守電) • TwiML (XML)書くだけで録音までできる •
録音終了後、好きなURL呼び出せるので、通知 もできそう • FAX受信で通知試したのでここでは割愛 • 録音自体はコンソールからも聞ける
12.
13.
録音ではまった点 • TwiMLで録音を指定した場合、actionの指定が ないと自分自身が再度呼ばれる • 何度も録音が動く結果になる •
なので、電話を切るというTwiMLを書いて、そ れへのURLを張り付けておく
14.
FAX送信 • API調べたら、curlたたくだけで送れる
15.
FAX送信(その他) • 送信成功とか失敗とかはおいおい調べます • トライアルアカウントだと、送信先FAX番号も Twilioで認証した番号しか使えません
16.
FAX送信ではまったところ • FAX送信時、PDFファイルをTwilioのサービスが アクセスできるところにアップロードしておく 必要がある • 遊んでるさくらインターネットのレンサバに間 借りしてBasic認証かけたアップロード用領域 作った •
Basic認証のパスワードに記号あれこれいれた ら、Twilio側からアクセスできなかった • 使えるもの使えないものがありそうだけど未調査
17.
FAX受信 • 受信だけなら、TwiMLだけでもできる
18.
FAX受信 • でも、コンソールから文面みれない。APIであ れこれする必要あり • API
Explorer 使ってコンソール(とブラウザ)で頑 張る方法もなくはない • TwiMLで受信後、Functionsで通知するのが手っ 取り早そう • まずはメールに送ってみる
19.
Functions作成 https://gist.github.com/junichim/8665ced09bed003011405cf6e3f8cd6d
20.
Functionsを呼び出すTwiML
21.
電話番号の設定
22.
FAX受信->メール送信 • 無事に送られてきました
23.
FAX受信ではまった点 • Functions 書くときにコールバックが非同期だ と、Promise入れてあげる必要あります •
メール送信に使ったSMTPサーバーがさくらイ ンターネットのレンサバだったけど、デフォル トで、国外IPアドレスフィルタが有効になって いる • なので、このフィルタを無効にしないとTwilioから のメール送信に失敗する
24.
ネタ元。感謝しかありません • https://qiita.com/yyano/items/177076c9d5801cfdf adc
25.
まとめ • 実際問題、ひかり電話代わりに、お安く使えるか は、電話(音声通話)・FAXの送受信の多さ次第 • でも、それとは別にいろいろと遊べそう •
ブログにもまとめてあるので詳しくはそちらもど うぞ https://blog.mori-soft.com/entry/2018/11/09/204140 https://blog.mori-soft.com/entry/2018/11/09/204200 https://blog.mori-soft.com/entry/2018/11/09/204215
26.
以上です
Baixar agora