LINE
LINE is a messaging app that allows you to send messages, make voice and video calls, and share photos, videos, and more.
It's popular in Asia and has over 200 million active users worldwide.
Introduction
The LINE integration allows you to send messages to a LINE chat. You can use this integration to send notifications, alerts, and updates to your LINE contacts.
It's powered by LINE Messaging API, which allows you to add LINE to your app or website to reach your customers. You can respond to messages, send stickers, images, videos, and more.
There is an LINE Notify integration also, helps you to send notifications from your app to LINE users. It will replace the LINE Messaging API with the LINE Notify API to send messages if you enable it.
Prerequisites
Before you can set up the LINE integration, you need to have the following:
- A LINE account
- A LINE channel
- A LINE bot
Setting up the integration
Here will show you how to set up the LINE integration by creating a LINE bot and adding it to a chat.
Create a LINE bot
To set up the LINE integration, you need to create a LINE bot in your LINE account. You can do this by following these steps:
- Open LINE Developers.
- Log in to your LINE account.
- Go to the LINE Developers Console.
- Click on the "Create a new provider" button.
- Enter the provider name and description.
- Click on the "Create" button.
- Enter the provider you just created.
- Click on the "Create a new channel" button.
- Fill in the required information for the channel.
- Click on the "Create" button.
- Click on the "Issue" button to generate a channel access token.
- Copy the channel access token and channel secret into the
channelAccessToken
andchannelSecret
fields respectively (see the Configure section). - Add the LINE bot to your chat you're hoping to bridging it.
- Start a chat with the bot and send a command to verify that it is working.
Here is the official documentation for creating a LINE bot: LINE Messaging API
Create a LINE Notify Service Provider (Optional)
To set up the LINE Notify integration, you need to create a LINE Notify service provider in your LINE account.
You can do this by following these steps:
- Open LINE Notify.
- Log in to your LINE account.
- Go to the Manage registered services page.
- Click on the "Add service" button.
- Fill in the required information for the service.
- Submit the form with the
Agree and continue
button. - On the confirmation page, click on the
Add
button. - Verify your email address, the mail has be sent to the email you used to register the service provider.
- After verifying your email address, click the Manage registered services link.
- Open the service provider you just created.
- Copy the client ID and client secret into the
notifyClientId
andnotifyClientSecret
fields respectively (see the Configure section). - Make the
useNotify
fieldtrue
(see the Configure section).
It will be working with the LINE Notify API to send messages instead of the LINE Messaging API.
Configure
Here are the options you can configure for the LINE integration:
Option | Description |
---|---|
enable | Whether the provider is enabled or not. |
channelAccessToken | The channel access token of the LINE API. |
channelSecret | The channel secret of the LINE API. |
useNotify | Whether to use LINE Notify or not. |
notifyClientId | The client ID of the LINE Notify API. |
notifyClientSecret | The client secret of the LINE Notify API. |
enable
type: boolean
Whether the provider is enabled or not.
channelAccessToken
type: string
The channel access token of the LINE API.
You should obtain this token from the LINE Developers Console.
More information can be found here.
channelSecret
type: string
The channel secret of the LINE API.
You should obtain this secret from the LINE Developers Console.
More information can be found here.
useNotify
type: boolean
Whether to use LINE Notify or not.
LINE Notify is a service that allows you to send notifications from your app to LINE users.
More information can be found here.
If it's enabled, it will use the LINE Notify API to send messages instead of the LINE Messaging API.
notifyClientId
type: string
The client ID of the LINE Notify API.
You should obtain this ID from the LINE Notify API.
More information can be found here.
notifyClientSecret
type: string
The client secret of the LINE Notify API.
You should obtain this secret from the LINE Notify API.
More information can be found here.
The copyright of the brand logos belongs to the respective brand owners.