- LINE Messaging API
- Heroku
DO NOT INCLUDE 'line' in the name of provider and channel. If you do so, you cannnot create the provider nor the channel.
$ git clone https://github.com/hidehiro98/line-bot-101.git
$ cd line-bot-101
$ git remote add heroku https://git.heroku.com/YOUR-APP-NAME-ON-HEROKU.git
macOS
If you don't have brew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then
$ brew install heroku/brew/heroku
Ubuntu
$ sudo snap install --classic heroku
$ git push heroku master
Please ignore these lines
$ brew install heroku/brew/heroku
$ heroku create $YOUR_APP_NAME
$ heroku config:set LINE_CHANNEL_SECRET=$YOUR_LINE_CHANNEL_SECRET
$ heroku config:set LINE_ACCESS_TOKEN=$YOUR_LINE_ACCESS_TOKEN
Example
$ heroku config:set LINE_CHANNEL_SECRET=f73d5df3fagu3g301856e1dc4cfcf3e1
$ heroku config:set LINE_ACCESS_TOKEN=FbKBF7cB1HReh9lIc6M3bDz8Rd6D+0f1kvBaJF93QadC7SsGpHP9K1EOOYkbwRThXHdVSSupJ4TgKMEtE/LbnE2heif2GZci+ntGdP89cGfrbLiofFFBlrFygi58f/B5UsvqkvlfNM7BHddRZhhV2RgdB04t89/1O/w1cDnyilFU=
Only for image recognition
$ heroku config:set IBM_IAM_API_KEY=$YOUR_IAM_API_KEY
$ git push heroku master
https://www.slideshare.net/HidehiroNagaoka/le-wagon-tokyo-line-bot-101