Skip to content

LINE Webhook Node

Jatuphum Tungsilsukchai edited this page Mar 27, 2022 · 15 revisions

LINE Webhook Node, the endpoint for LINE Messaging API channel. It hooks messaging events from LINE Messaging API channel.

Usage

  1. Create LINE Messaging API Channel in LINE Developer console.
  2. Obtain a Channel Secret from your created LINE Messaging API Channel.
  3. Add Messaging API Channel to LINE application.
  4. Initiate Webhook Node at Node-RED flow.
  5. Configure LINE Messaging API Channel Access Token and Channel Secret in Webhook Node.
  6. Run workflow.
  7. Bind webhook URL at LINE Messaging API Channel in LINE Developer console by using URL LINE Webhook node URL (full URL).
  8. Send message from added Messaging API Channel (LINE BOT).
  9. Check result.

Input Settings

setup LINE webhook node through UI Node editor.

Property Mandatory Description
LINE Messaging API configuration Yes Configure LINE Messaging API configuration values.
Webhook URL Yes The URL of an endpoint on your server that can process webhook events sent by the LINE Platform.
e.g. /TestWebhook

LINE Webhook Settings

The webhook URL is configured at LINE Messaging API channel in the LINE Developers Console.

In your Messaging API channel, to go 'Messaging API' tab, then 'Webhook settings' section.

Webhook URL must use https protocol. e.g. Webhook URL "https://Server/TestWebhook"

Output

Using msg object.

Property Type Description
payload JSON object Webhook events and an array of webhook event objects.

More details

This LINE Webhook Node use Channel Secret for accessing security.

Obtain LINE Messaging API Channel Secret at your LINE Messaging API Channel.

See more details at LINE Messaging API (Webhooks) Document.

See more details at Webhook Event Objects.

Node has paste function data from clipboard, so allow paste permmision in browser to able to work paste function.

Clone this wiki locally