# LINE Messaging Export Integration

LINE is in Asia what Facebook Messaging and Instagram are to US mobile users—a fast and easy way to communicate with friends and to discover new promotions about favorite products and services. LINE is the number one mobile messaging platform in Japan and Taiwan and is also one of the largest advertising delivery platforms.

This TD export integration allows you to write job results from Treasure Data directly to a LINE Messaging account.

> **Note:** Engage Studio uses this connector for rich menu switching through Audience Studio activations. LINE campaign message delivery in Engage Studio uses the LINE OA Streaming Export connector instead. For details, see [LINE Rich Menu Switching](/products/marketing-cloud/engage-studio/channels/line/line-rich-menu-switching).


## What can you do with this Integration?

- Export the user IDs or IFAs from Treasure Data to a LINE account.
- Send messages to users, groups, and rooms in 2-way:
  - Push Message - Send a message to a single user.
  - Multicast Message - Send a message to multiple users.
- Supports sending 10 types of LINE messages:
  - Text  Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#text-message)
  - Text Message V2 - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#text-message-v2)
  - Sticker Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#sticker-message)
  - Image Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#image-message)
  - Video Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#video-message)
  - Audio Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#audio-message)
  - Location Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#location-message)
  - Image Map Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#imagemap-message)
  - Template Messages - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#template-messages)
  - Flex Message - [Messaging API reference](https://developers.line.biz/en/reference/messaging-api/#flex-message)


## Prerequisites

- Basic knowledge of Treasure Data
- Basic knowledge LINE messaging
- Official LINE messaging account


## Requirements and Limitations

- Treasure Data does not verify the validity of your data; Treasure Data only filters NULL or empty data before uploading.


## Use the Treasure Console to Create a Connection

You must create and configure the data connection in the Treasure Console prior to running the query that will export data. As part of the data connection, you provide authentication credentials to access the integration.

LINE supports two authentication methods:

- Channel Access Token (Default)
- Short-Lived Token


### Create a new Channel Access Token Authentication

1. Open **Treasure Console**.
2. Navigate to **Integrations Hub** > **Catalog**.
3. Search for LINE and select **LINE Messaging**.
4. Select **Create Authentication**.
5. From the Authentication Method drop-down, select **Channel Access Token**.
6. Enter the LINE Messaging channel access token that will be used to authenticate to your LINE account.
7. Select **Continue**.
8. Enter a name for your connection.
9. Select **Done**.


### Create a new Short-Lived Token Authentication

1. Open **Treasure Console**.
2. Navigate to **Integrations Hub** > **Catalog**.
3. Search for LINE and select **LINE Messaging.**
4. Select **Create Authentication.**
5. From the Authentication Method drop-down, select **Short Lived Token**.
6. Enter the LINE Messaging Channel Id**.**
7. Enter the Channel Secret**.**
8. Select **Continue**.
9. Type a name for your connection.
10. Select **Done**.


## Appendix A: How to get a LINE Channel ID and Channel secret?

1. Go to [https://developers.line.biz/en/](https://developers.line.biz/en/) and select **login** in the top right corner.


![](/assets/linelogin.b40e0916e82ff28ee04c06b07ed3cf66bf8f93aeffa1dbec4d081a9a5df3efe3.77d44e6e.png)

1. Select **Log in with LINE account**.


![](/assets/linebizacct.3dfeff8c0d2712ea14ac4c864d24f0792068833afe2b91bd6e3f51b43301def2.77d44e6e.png)

1. Enter your official LINE account's user name and password and select **Log in**.


![](/assets/loginpsswd.9c7e96beea924c6e3a3d7ad252690a733b7065b12ca64bdf878c044a7f721a34.77d44e6e.png)

1. Access your Channel


![](/assets/image2022-11-3_15-32-32.76df41c1cc5ade8517c0bc5c7576755c77375d7118bbc66f0bc8b9dfe3d2de65.77d44e6e.png)

1. In your channel, select the **Basic settings** tab.


You will see **Channel ID** and **Channel secret** on this tab.

![](/assets/image2022-11-3_16-10-45.88a077e14236f74c4f6b89f380de298629c8c28ab6a90626bb2725ff736e2e7c.77d44e6e.png)