Javascript LINE Notify

Simple API LINE Notify
Requirement Node.js v8.11.4 NPM v6.4.0 request request-promise fs InstallationInstallation is simple.
$ git clone https://github.com/albertoanggi/js-line-notify
$ npm install
Generate LINE Notify Token
https://notify-bot.line.me/my/
UsageInitialization
const LineNotify = require("./src/client"); const ACCESS_TOKEN = "TOKEN_HERE!"; const notify = new LineNotify(`${ACCESS_TOKEN}`); Example
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();
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。