1.0.3 • Published 1 year ago

node-line-notify v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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",
});
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago