node-line-notify
v1.0.3
Published
3rd Party LineNotify SDK for Node.js
Downloads
12
Readme
3rd Party LineNotify SDK for Node.js
A light-weight line notify library without dependencies only buit-in library used
Quick Start
const LineNotifier = require("../index");
const linenotify = new LineNotifier(
"client_id",
"client_secret",
"redirect_uri"
);
Get Login url
const url = linenotify.authorize("RandomState");
Get accessToken
linenotify.getAccessToken("code").then((res) => console.log(res));
Send notify function works by pass parameter name from LINE Notify API Document in Notification section as key of object
linenotify.send("AccessToken", { message: "Hello World" });
linenotify.send("AccessToken", {
message: "Hello World",
imageFile: "./image.jpg",
});