0.1.3 • Published 6 years ago

line-client v0.1.3

Weekly downloads
17
License
-
Repository
-
Last release
6 years ago

line-client

LINE (Messenger) Notify client for nodejs. Based on LINE notify. This works for both Promise and classic callback function. If callback is not passed as parameter, it will return Promise.

Requirement

  1. node > 8
  2. API Key (Generate Token) from LINE notify

How to use

  1. npm install line-client
  2. For example:
const { LineClient } = require("line-client");
const client = new LineClient("x1hkj4apoiidKuK32lH9dPwOs5uh5fBk7rPogoz");

client.notify({message: "foo"})
.then((res) => {
  console.log(res);
})
.catch((err) => {
  console.log("Error", err);
});

client.notify("testing", (err, res) => {
  if (err) {
    console.log("Error", err);
  }
  console.log(res);
});
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago