user >> line server >> web app
Product/Message Api
- Create a channel
Use LINE SDK
- install
$ pip3 install line-bot-sdk
- new
app.py
and use Synopsis sample code app.py
changeYOUR_CHANNEL_ACCESS_TOKEN
&YOUR_CHANNEL_SECRET
Register Heroku Account
$ brew install heroku/brew/heroku
$ heroku login
- ur app > deploy
- ur existing git project add the heroku remote
$ heroku git:remote -a {ur heroku app name}
- for Heroku new
Procfile
- new
requirements.txt
($ pip3 freeze > Requirements.txt
)
- Webhooks: Messaging API settings > Webhook URL
- Add friend!!: Messaging API settings > QR code