Skip to content

A Simple Lightweight Package to Simplify working with Line Notify

Notifications You must be signed in to change notification settings

AkritW/SimpleLineNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published