This sample is aimed to let developers have a picture about the BC server development.
It is a echo server that shows some functions of LINE Bussiness Connect
- Signature Validation
- Receiving Messages
- Sending Messages
- Create the LINE channel on LINE developers
- Install nodeJS, npm
- Install the node modules
$ npm install
- Add configurations.json under config/beta folder (remeber to remove the comments)
{
"port": , // Port where you put your service.
"channelUrl": "", // https://api.line.me
"channelToken": "", // Get your channelToken in https://developers.line.me/channels/tech/CHANNEL_ID
"channelId": "", // Your channel id
"eventToChannelId":"",// Fixed value. 1383378250
"eventType": "", // Fixed value. 138311608800106203
"channelSecret": "" // Refer to https://developers.line.me/channels/CHANNEL_ID
}
$ node server.js
node_modules
- This sample is built as a simple testbed. Please take care the settings and security staff if you want to use this sample as production enviroment.