0.1.3 • Published 6 years ago
line-client v0.1.3
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
node
> 8- API Key (Generate Token) from LINE notify
How to use
npm install line-client
- 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);
});