Simple API LINE Notify
- Node.js v8.11.4
- NPM v6.4.0
- request
- request-promise
- fs
Installation is simple.
$ git clone https://github.com/albertoanggi/js-line-notify
$ npm install
https://notify-bot.line.me/my/
Initialization
const LineNotify = require("./src/client");
const ACCESS_TOKEN = "TOKEN_HERE!";
const notify = new LineNotify(`${ACCESS_TOKEN}`);
sendText()
notify.sendText("Halo Enji");
sendImage()
//Image from local computer
notify.sendImage("default_image.png");
//Image from url (HTTPS/HTTP)
notify.sendImage("https://scdn.line-apps.com/n/line_notice/img/og_160829/og_fb.png");
sendSticker()
notify.sendSticker(2, 1);
You can see sticker list in here
status()
notify.status();
revoke()
notify.revoke();