2.0.0 • Published 2 months ago

simple-line-notify v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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();
1.1.4

2 months ago

2.0.0

2 months ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago