Skip to content

About

A Simple Lightweight Package to Simplify working with Line Notify

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

A Simple Lightweight Package to Simplify working with Line Notify

Installation

npm install simple-line-notify

Example

const initLineNotify = require("simple-line-notify");

const main = async () => {
  // insert API key
  const { sendMessage, sendSticker, sendImage } = initLineNotify(
    "Bearer xxxxxxxxxxxxxxxxx",
  );

  // send message
  const res1 = await sendMessage("Hello My Community");

  // send sticker
  const res2 = await sendSticker("Happy New Year 🎉", 446, 1992);

  // send image
  const res3 = await sendImage(
    "Here is a Cat picture!",
    "https://i.ytimg.com/vi/fOd16PT1S7A/maxresdefault.jpg",
  );

  // log
  console.log(res1);
  console.log(res2);
  console.log(res3);
};

main();

About

A Simple Lightweight Package to Simplify working with Line Notify

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages