Code sample for creating LINE Bot by Messaging API
- Create a folder and put app.js in it
- Replace xxxxx in app.js with your CHANNEL_ACCESS_TOKEN
- Replace yyyyy in app.js with your USER_ID
- Open command line tool then shell to folder you created
- npm init
- npm install express --save
- npm install body-parser --save
- npm install request --save
- Open command line tool then shell to folder you created
- node app.js (for starting)
- pkill -9 node (for stopping)
- Reply Message
- Push Message