Submit Search
Upload
40行で書ける! Serverless LINE BOT
•
4 likes
•
1,950 views
LINE Corporation
Follow
@ PyconJP 2017 LT
Read less
Read more
Technology
Report
Share
Report
Share
1 of 17
Recommended
アプリで簡単にスタンプを販売するためのAPI開発
アプリで簡単にスタンプを販売するためのAPI開発
LINE Corporation
S8 line engineer culture
S8 line engineer culture
LINE Corporation
Mulesoft Raml APIs
Mulesoft Raml APIs
akshay yeluru
LINE developers site the tech behind the docs
LINE developers site the tech behind the docs
LINE Corporation
What are APIs?
What are APIs?
Low-Code Starter Pack
Build a Great Conversationalist
Build a Great Conversationalist
Lorenzo Barbieri
Enterprise-grade mobile barcode scanning with Scandit and Xamarin
Enterprise-grade mobile barcode scanning with Scandit and Xamarin
Xamarin
Api application programming interface
Api application programming interface
Mohit Bishnoi
Recommended
アプリで簡単にスタンプを販売するためのAPI開発
アプリで簡単にスタンプを販売するためのAPI開発
LINE Corporation
S8 line engineer culture
S8 line engineer culture
LINE Corporation
Mulesoft Raml APIs
Mulesoft Raml APIs
akshay yeluru
LINE developers site the tech behind the docs
LINE developers site the tech behind the docs
LINE Corporation
What are APIs?
What are APIs?
Low-Code Starter Pack
Build a Great Conversationalist
Build a Great Conversationalist
Lorenzo Barbieri
Enterprise-grade mobile barcode scanning with Scandit and Xamarin
Enterprise-grade mobile barcode scanning with Scandit and Xamarin
Xamarin
Api application programming interface
Api application programming interface
Mohit Bishnoi
Api types
Api types
Sarah Maddox
Building APIs with Node.js and MonogDB
Building APIs with Node.js and MonogDB
Charlie Key
apiDoc Introduction
apiDoc Introduction
Peter Rottmann
Building Self Documenting REST APIs
Building Self Documenting REST APIs
Yan Pritzker
apidays LIVE Australia - Federating API Development at Australia’s largest bu...
apidays LIVE Australia - Federating API Development at Australia’s largest bu...
apidays
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
apidays
Liferay as a headless platform
Liferay as a headless platform
Jorge Ferrer
Ruby on rails api Development case study
Ruby on rails api Development case study
Infigic Digital Solutions
Cross Platform Mobile Development
Cross Platform Mobile Development
Software Infrastructure
Mule raml
Mule raml
Ramakrishna Kapa
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
Hiranya Jayathilaka
[API the Docs Paris 2018] Architecting DX
[API the Docs Paris 2018] Architecting DX
Kathleen De Roo
API Design - When to buck the trend (Webcast)
API Design - When to buck the trend (Webcast)
Apigee | Google Cloud
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2
Develop a Mobile Application coonected to a REST backend
Develop a Mobile Application coonected to a REST backend
Charles Moulliard
apidays LIVE Australia - API Design in Fintech: Challenges and Opportunities ...
apidays LIVE Australia - API Design in Fintech: Challenges and Opportunities ...
apidays
Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...
SlideTeam
API first approach for frontend developers
API first approach for frontend developers
FDConf
Workshop: API Management
Workshop: API Management
WSO2
Xamarin Platform
Xamarin Platform
Liddle Fang
EC Family Introduction
EC Family Introduction
LINE Corporation
LINE TODAY- Hosting a high volume, low latency website
LINE TODAY- Hosting a high volume, low latency website
LINE Corporation
More Related Content
What's hot
Api types
Api types
Sarah Maddox
Building APIs with Node.js and MonogDB
Building APIs with Node.js and MonogDB
Charlie Key
apiDoc Introduction
apiDoc Introduction
Peter Rottmann
Building Self Documenting REST APIs
Building Self Documenting REST APIs
Yan Pritzker
apidays LIVE Australia - Federating API Development at Australia’s largest bu...
apidays LIVE Australia - Federating API Development at Australia’s largest bu...
apidays
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
apidays
Liferay as a headless platform
Liferay as a headless platform
Jorge Ferrer
Ruby on rails api Development case study
Ruby on rails api Development case study
Infigic Digital Solutions
Cross Platform Mobile Development
Cross Platform Mobile Development
Software Infrastructure
Mule raml
Mule raml
Ramakrishna Kapa
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
Hiranya Jayathilaka
[API the Docs Paris 2018] Architecting DX
[API the Docs Paris 2018] Architecting DX
Kathleen De Roo
API Design - When to buck the trend (Webcast)
API Design - When to buck the trend (Webcast)
Apigee | Google Cloud
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2
Develop a Mobile Application coonected to a REST backend
Develop a Mobile Application coonected to a REST backend
Charles Moulliard
apidays LIVE Australia - API Design in Fintech: Challenges and Opportunities ...
apidays LIVE Australia - API Design in Fintech: Challenges and Opportunities ...
apidays
Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...
SlideTeam
API first approach for frontend developers
API first approach for frontend developers
FDConf
Workshop: API Management
Workshop: API Management
WSO2
Xamarin Platform
Xamarin Platform
Liddle Fang
What's hot
(20)
Api types
Api types
Building APIs with Node.js and MonogDB
Building APIs with Node.js and MonogDB
apiDoc Introduction
apiDoc Introduction
Building Self Documenting REST APIs
Building Self Documenting REST APIs
apidays LIVE Australia - Federating API Development at Australia’s largest bu...
apidays LIVE Australia - Federating API Development at Australia’s largest bu...
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
Liferay as a headless platform
Liferay as a headless platform
Ruby on rails api Development case study
Ruby on rails api Development case study
Cross Platform Mobile Development
Cross Platform Mobile Development
Mule raml
Mule raml
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
REST Coder: Auto Generating Client Stubs and Documentation for REST APIs
[API the Docs Paris 2018] Architecting DX
[API the Docs Paris 2018] Architecting DX
API Design - When to buck the trend (Webcast)
API Design - When to buck the trend (Webcast)
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric Enterprise
Develop a Mobile Application coonected to a REST backend
Develop a Mobile Application coonected to a REST backend
apidays LIVE Australia - API Design in Fintech: Challenges and Opportunities ...
apidays LIVE Australia - API Design in Fintech: Challenges and Opportunities ...
Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...
API first approach for frontend developers
API first approach for frontend developers
Workshop: API Management
Workshop: API Management
Xamarin Platform
Xamarin Platform
Viewers also liked
EC Family Introduction
EC Family Introduction
LINE Corporation
LINE TODAY- Hosting a high volume, low latency website
LINE TODAY- Hosting a high volume, low latency website
LINE Corporation
The Magic of LINE QA Testing
The Magic of LINE QA Testing
LINE Corporation
LINE Technical Partner Program
LINE Technical Partner Program
LINE Corporation
Messaging API Update
Messaging API Update
LINE Corporation
LINE NOW - Chatbots in offline events
LINE NOW - Chatbots in offline events
LINE Corporation
In-app Web Framework
In-app Web Framework
LINE Corporation
LINE Things
LINE Things
LINE Corporation
LINE Square & Chatapp
LINE Square & Chatapp
LINE Corporation
Google analytics教學手冊
Google analytics教學手冊
煜庭 邱
当たり前を当たり前に:Agile2017レポート
当たり前を当たり前に:Agile2017レポート
LINE Corporation
Viewers also liked
(11)
EC Family Introduction
EC Family Introduction
LINE TODAY- Hosting a high volume, low latency website
LINE TODAY- Hosting a high volume, low latency website
The Magic of LINE QA Testing
The Magic of LINE QA Testing
LINE Technical Partner Program
LINE Technical Partner Program
Messaging API Update
Messaging API Update
LINE NOW - Chatbots in offline events
LINE NOW - Chatbots in offline events
In-app Web Framework
In-app Web Framework
LINE Things
LINE Things
LINE Square & Chatapp
LINE Square & Chatapp
Google analytics教學手冊
Google analytics教學手冊
当たり前を当たり前に:Agile2017レポート
当たり前を当たり前に:Agile2017レポート
Similar to 40行で書ける! Serverless LINE BOT
Real-World, Open Source, End-to-End JavaScript in IoT
Real-World, Open Source, End-to-End JavaScript in IoT
All Things Open
Top 7 wrong common beliefs about Enterprise API implementation
Top 7 wrong common beliefs about Enterprise API implementation
OCTO Technology
Octo API-days 2015
Octo API-days 2015
Antoine CHANTALOU
INTERFACE by apidays 2023 - APIs with bounded contexts, Jose Haro Peralta, mi...
INTERFACE by apidays 2023 - APIs with bounded contexts, Jose Haro Peralta, mi...
apidays
5 Web Platforms to Build Online Business Edit
5 Web Platforms to Build Online Business Edit
LearnToProgram, Inc.
API Conference 2021
API Conference 2021
José Haro Peralta
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
luisw19
Introducing WSO2 API Manager for Mobile Applications and Rapid Integration
Introducing WSO2 API Manager for Mobile Applications and Rapid Integration
WSO2
RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)
Cisco DevNet
API Gateways are going through an identity crisis
API Gateways are going through an identity crisis
Christian Posta
Building RESTful APIs
Building RESTful APIs
Silota Inc.
How to Build, Manage, and Promote APIs
How to Build, Manage, and Promote APIs
WSO2
Your API is your Product - Arun Ravindran, Unisys
Your API is your Product - Arun Ravindran, Unisys
baconfblr
RefCard API Architecture Strategy
RefCard API Architecture Strategy
OCTO Technology
Dev Dives: Leverage APIs and Gen AI to power automations for RPA and software...
Dev Dives: Leverage APIs and Gen AI to power automations for RPA and software...
UiPathCommunity
Rhodes
Rhodes
jwallace41
2 module07 cognitive services and the bot framework
2 module07 cognitive services and the bot framework
Meng-Ru (Raymond) Tsai
AADI Mashery/Coca-Cola Enterprises November 2012
AADI Mashery/Coca-Cola Enterprises November 2012
BAPISFNYLONDON
Building Enterprise Chat Bots
Building Enterprise Chat Bots
Vasu Jain
2013 02-apache conna-api-manager-asanka
2013 02-apache conna-api-manager-asanka
WSO2
Similar to 40行で書ける! Serverless LINE BOT
(20)
Real-World, Open Source, End-to-End JavaScript in IoT
Real-World, Open Source, End-to-End JavaScript in IoT
Top 7 wrong common beliefs about Enterprise API implementation
Top 7 wrong common beliefs about Enterprise API implementation
Octo API-days 2015
Octo API-days 2015
INTERFACE by apidays 2023 - APIs with bounded contexts, Jose Haro Peralta, mi...
INTERFACE by apidays 2023 - APIs with bounded contexts, Jose Haro Peralta, mi...
5 Web Platforms to Build Online Business Edit
5 Web Platforms to Build Online Business Edit
API Conference 2021
API Conference 2021
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
Introducing WSO2 API Manager for Mobile Applications and Rapid Integration
Introducing WSO2 API Manager for Mobile Applications and Rapid Integration
RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)
API Gateways are going through an identity crisis
API Gateways are going through an identity crisis
Building RESTful APIs
Building RESTful APIs
How to Build, Manage, and Promote APIs
How to Build, Manage, and Promote APIs
Your API is your Product - Arun Ravindran, Unisys
Your API is your Product - Arun Ravindran, Unisys
RefCard API Architecture Strategy
RefCard API Architecture Strategy
Dev Dives: Leverage APIs and Gen AI to power automations for RPA and software...
Dev Dives: Leverage APIs and Gen AI to power automations for RPA and software...
Rhodes
Rhodes
2 module07 cognitive services and the bot framework
2 module07 cognitive services and the bot framework
AADI Mashery/Coca-Cola Enterprises November 2012
AADI Mashery/Coca-Cola Enterprises November 2012
Building Enterprise Chat Bots
Building Enterprise Chat Bots
2013 02-apache conna-api-manager-asanka
2013 02-apache conna-api-manager-asanka
More from LINE Corporation
JJUG CCC 2018 Fall 懇親会LT
JJUG CCC 2018 Fall 懇親会LT
LINE Corporation
Reduce dependency on Rx with Kotlin Coroutines
Reduce dependency on Rx with Kotlin Coroutines
LINE Corporation
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
LINE Corporation
Use Kotlin scripts and Clova SDK to build your Clova extension
Use Kotlin scripts and Clova SDK to build your Clova extension
LINE Corporation
The Magic of LINE 購物 Testing
The Magic of LINE 購物 Testing
LINE Corporation
GA Test Automation
GA Test Automation
LINE Corporation
UI Automation Test with JUnit5
UI Automation Test with JUnit5
LINE Corporation
Feature Detection for UI Testing
Feature Detection for UI Testing
LINE Corporation
LINE 新星計劃介紹與新創團隊分享
LINE 新星計劃介紹與新創團隊分享
LINE Corporation
LINE 技術合作夥伴與應用分享
LINE 技術合作夥伴與應用分享
LINE Corporation
LINE 開發者社群經營與技術推廣
LINE 開發者社群經營與技術推廣
LINE Corporation
日本開發者大會短講分享
日本開發者大會短講分享
LINE Corporation
LINE Chatbot - 活動報名報到設計分享
LINE Chatbot - 活動報名報到設計分享
LINE Corporation
在 LINE 私有雲中使用 Managed Kubernetes
在 LINE 私有雲中使用 Managed Kubernetes
LINE Corporation
LINE TODAY高效率的敏捷測試開發技巧
LINE TODAY高效率的敏捷測試開發技巧
LINE Corporation
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE Corporation
LINE Things - LINE IoT平台新技術分享
LINE Things - LINE IoT平台新技術分享
LINE Corporation
LINE Pay - 一卡通支付新體驗
LINE Pay - 一卡通支付新體驗
LINE Corporation
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Corporation
Keynote - LINE 的技術策略佈局與跨國產品開發
Keynote - LINE 的技術策略佈局與跨國產品開發
LINE Corporation
More from LINE Corporation
(20)
JJUG CCC 2018 Fall 懇親会LT
JJUG CCC 2018 Fall 懇親会LT
Reduce dependency on Rx with Kotlin Coroutines
Reduce dependency on Rx with Kotlin Coroutines
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
Kotlin/NativeでAndroidのNativeメソッドを実装してみた
Use Kotlin scripts and Clova SDK to build your Clova extension
Use Kotlin scripts and Clova SDK to build your Clova extension
The Magic of LINE 購物 Testing
The Magic of LINE 購物 Testing
GA Test Automation
GA Test Automation
UI Automation Test with JUnit5
UI Automation Test with JUnit5
Feature Detection for UI Testing
Feature Detection for UI Testing
LINE 新星計劃介紹與新創團隊分享
LINE 新星計劃介紹與新創團隊分享
LINE 技術合作夥伴與應用分享
LINE 技術合作夥伴與應用分享
LINE 開發者社群經營與技術推廣
LINE 開發者社群經營與技術推廣
日本開發者大會短講分享
日本開發者大會短講分享
LINE Chatbot - 活動報名報到設計分享
LINE Chatbot - 活動報名報到設計分享
在 LINE 私有雲中使用 Managed Kubernetes
在 LINE 私有雲中使用 Managed Kubernetes
LINE TODAY高效率的敏捷測試開發技巧
LINE TODAY高效率的敏捷測試開發技巧
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE 區塊鏈平台及代幣經濟 - LINK Chain及LINK介紹
LINE Things - LINE IoT平台新技術分享
LINE Things - LINE IoT平台新技術分享
LINE Pay - 一卡通支付新體驗
LINE Pay - 一卡通支付新體驗
LINE Platform API Update - 打造一個更好的Chatbot服務
LINE Platform API Update - 打造一個更好的Chatbot服務
Keynote - LINE 的技術策略佈局與跨國產品開發
Keynote - LINE 的技術策略佈局與跨國產品開發
Recently uploaded
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Recently uploaded
(20)
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
40行で書ける! Serverless LINE BOT
1.
40行で書ける! Serverless LINE BOT LINE
Corporation Tasuku OKUDA
2.
Introduction • Hadoop administrator/developer •
LINEスタンプ: https://store.line.me/stickershop/product/1464176 • Python @ LINE • メッセージ流量やスタンプ販売数などの統計Batch • 複雑なJob dependencyの管理 • セキュリティ監査やSpanモニタリングツールの開発 • LINE Messaging API SDK
3.
LINE Messaging API
4.
LINE Messaging API •
https://business.line.me/ja/services/bot • Doc: https://devdocs.line.me/ja/ • LINEサーバ経由で、ユーザ側のLINE appと開発者側のシステムを繋ぐAPI • JSON Webhook • Imagemap、Carouselなど、Messaging APIならではのメッセージも
5.
LINE Bot SDK
for Python • Github: https://github.com/line/line- bot-sdk-python • PyPi: https://pypi.python.org/pypi/line- bot-sdk/1.3.0 • Messaging APIの様々なRequest/ ResponseをPython objectで扱えるSDK • WebhookHandlerでEvent/MessageType 毎の処理を分離して書ける
6.
LINE Messaging API + Serverless
7.
Serverless LINE BOT LINE
app (User) LINE Messaging API Server AWS API Gateway AWS Lambda Event Webhook POST req POST request to Messaging API Response chalice Python Serverless Microframework
8.
9.
$ pip install
line-bot-sdk chalice $ chalice new-project line-bot https://gist.github.com/okdtsk/af70f33e2197b759848df8d6a800ce0a
10.
from chalice import
Chalice app = Chalice(app_name=‘line-bot’) from linebot import LineBotApi from linebot import WebhookHandler line_bot_api = LineBotApi(os.environ['LINEBOT_ACCESS_TOKEN']) handler = WebhookHandler(os.environ['LINEBOT_SECRET']) https://gist.github.com/okdtsk/af70f33e2197b759848df8d6a800ce0a
11.
@app.route('/callback', methods=['POST']) def callback(): signature
= app.current_request.headers['X-Line-Signature'] body = app.current_request.raw_body.decode('utf-8') try: handler.handle(body, signature) except InvalidSignatureError as e: return Response({‘error': e.message}, status_code=400) return Response({'ok': True}) https://gist.github.com/okdtsk/af70f33e2197b759848df8d6a800ce0a
12.
@handler.add(MessageEvent, message=TextMessage) def handle_text_message(event): line_bot_api.reply_message( event.reply_token, TextSendMessage(text=‘Reply:
{}’.format(event.message.text)) ) https://gist.github.com/okdtsk/af70f33e2197b759848df8d6a800ce0a
13.
$ chalice deploy https://gist.github.com/okdtsk/af70f33e2197b759848df8d6a800ce0a
14.
15.
40行でecho bot! https://gist.github.com/okdtsk/af70f33e2197b759848df8d6a800ce0a
16.
LINE BOTはかんたん! 作 っ て み て ね
17.
Thank you!