line-bot-python-heroku

by abechen

GitHub Readme.md

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


  1. 註冊Line Messaging API
    https://business.line.me/zh-hant/services/bot
  • 記下Channel Access Token``Channel Secret
  1. Deploy 到 Heroku (需先註冊Heroku帳號)
    Deploy

  2. 修改app.py參數
    line_bot_api = LineBotApi('') #Your Channel Access Token
    handler = WebhookHandler('') #Your Channel Secret

  3. Add-ons Fixie
    https://elements.heroku.com/addons/fixie

  4. 到Line developers 設定Webhook URL
    https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback