To help developers to talk with Line chatbot.
- Go to https://notify-bot.line.me
- Login
- Go to https://notify-bot.line.me/my/
- Click Generate Token
- Copy the generated token
docker run -d -p 3000:3000 --env default_access_token=YOUR_DEFAULT_TOKEN --env default_message=HelloWorld mymislife/docker-line-notify
curl http://localhost:3000 -X POST -H "Content-Type: application/json" -d '{"message":"I am robot!"}'
curl http://localhost:3000 -X POST -H "Content-Type: application/json" -d '{"message":"I am robot!", "access_token": "YOUR_NEW_TOKEN"}'
If your service has been set the default_access_token, every time you invoke the service, you don't have to carry the token.
default_access_token: String,
default_message: String
[POST] [http://localhost:3000](http://localhost:3000),
Content-Type: application/json,
Data:
access_token: ""
message: ""
[GET] [http://localhost:3000/healthcheck](http://localhost:3000/healthcheck),
Response: {msg: "it works!"}
This open source is MIT-based.
The rest of the license and the right should be referred to https://line.me.