-
Notifications
You must be signed in to change notification settings - Fork 0
LINE Notify API Node
NODE-RED node for publish message notification to LINE Notify. You can use LINE notify API through this Node, include uploading image file.
Three types of messages can be sent.
- Text
- Images
- Sticker
Two modes of usage node can be set.
- Manual input data
- Use data from flow
-
Create and obtain an Access Token at LINE Notify official website.
-
Add LINE Notify Node in Node-RED workspace.
Configure nodes before use.
- Setup Access Token at LINE Notify API Node.
- Determined that user doesn't receive or receives Push Notification at LINE Notify when the message is sent.
- Check : user doesn't receive Push Notification
- Uncheck : user receives Push Notification
- Choose usage data from flow or manual input data.
- Uncheck : Use data from manual input (default)
- Check : Use data from flow
- Node settings
- Use/Don't use external data. If use external data, it does not use data from Node Input.
- Disabled Push Notification, the user does/doesn't receive push notification when the message is sent.
- Don't use external data case, it use data from input below.
- Message. Notification message.
-
Not use. Not use image with LINE Notify.
-
Image URL. Use image URL with LINE Notify.
-
Fullsize URL. Image URL of full size image. Maximum size of 2048×2048px JPEG
-
Thumbnail URL. Image URL of thumbnail image. Maximum size of 240×240px JPEG
-
-
Upload Image. Use upload a image file to the LINE server. Should be an absolute path to upload image file, e.g.
C:\folder\image.jpg
Remark : Support.png
and.jpg
-
Use/Don't use Sticker. Use or don't use sticker with LINE Notify..
-
Package ID. LINE Package Id of sticker Id
-
Sticker ID. LINE Sticker Id
-
-
Run workflow
-
Check result.
When setup node values to 'Use external data', it uses msg
object instead node input.
Property | Mandatory | Type | Description |
---|---|---|---|
payload | Yes | string |
Notification message. 1000 characters max. |
useImageUrl | No (If not send, automated set to false ) |
boolean |
true : Use image URL with LINE Notify. Additional imageFullsizeUrl and imageThumbnailUrl must be specified.false : Not use image URL with LINE Notify. |
imageFullsizeUrl | No (Yes, if useImageUrl is true ) |
string |
Image URL. Maximum size of 2048×2048px JPEG. |
imageThumbnailUrl | No (Yes, if useImageUrl is true ) |
string |
Image URL. Maximum size of 240×240px JPEG. |
useImageFile | No (If not send, automated set to false ) |
boolean |
true : Upload a image file to the LINE server. Additional imageFile must be specified.false : Not upload a image file to the LINE server. |
imageFile | No (Yes, if useImageFile is true ) |
string |
Should be an absolute path to upload image file, e.g. C:\folder\image.jpg (Support .png and .jpg )If you specified all imageFullsizeUrl , imageThumbnailUrl and imageFile . The imageFile takes precedence. See more detail at LINE Notify API Document
|
useSticker | No (If not send, automated set to false ) |
boolean |
true : Use sticker with LINE Notify. Additional stickerPackageId and stickerId must be specified.false : Not use sticker with LINE Notify. |
stickerId | No (Yes, if useSticker is true ) |
number |
LINE Sticker Id. See more details at LINE List of available stickers |
stickerPackageId | No (Yes, if useSticker is true ) |
number |
LINE Package Id of sticker Id. See more details at LINE List of available stickers |
Using msg
object.
Property | Type | Description |
---|---|---|
status | number |
Result status code |
payload | string |
Result status message |
After install package, see usage examples at Node-RED Import menu at node-red-contrib-node-line-api
, then line-notify-examples
.
- See more details at LINE Notify API Document.
- See more details about Sticker ID and Package ID at LINE List of available stickers.