line-bot-python-heroku
API : https://devdocs.line.me/en/
line-bot-sdk-python : https://github.com/line/line-bot-sdk-python
Fixie : https://elements.heroku.com/addons/fixie
- 註冊Line Messaging API
https://business.line.me/zh-hant/services/bot
- 記下
Channel Access Token``Channel Secret
-
修改app.py參數
line_bot_api = LineBotApi('') #Your Channel Access Token
handler = WebhookHandler('') #Your Channel Secret
-
Add-ons Fixie
https://elements.heroku.com/addons/fixie -
到Line developers 設定
Webhook URL
https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback