A demo server to send messages through LINE notify
- You need to have an OpenShift account first.
- Login to OpenShift Web management console
- Create an cartridge for the latest Node.js and
git clonethis project to your cartridge - After the process, OpenShift will do the rest things.
- Create a new LINE notify
- Fill in the required information
- Make sure your Callback URL is: https://[your-cartridge].rhcloud.com/add-notify-user
- Get your
CHANNEL_TOKENfrom web console and paste it to the fileline-notify.js
- First, login your LINE on PC/mobile
- Acceess
https://[your-cartridge].rhcloud.com/oauth.htmlby the browser - Click
connectto create an OAuth2 connection between LINE Notify and your cartridge, then your server is alllow to send notifications. - Send test messages by:
curl -X GET https://[your-cartridge].rhcloud.com/line-notify
