# Line

## General information

The integration lets you connect Line Business Channels.

{% hint style="warning" %}

#### **Before the Line integration you should:**

* install mobile app Line on your smartphone and create an account

**Important:** The new version of Line in Appstore on the territory of Russian Federation is not available for download
{% endhint %}

## Connect Line?

### **Step 1.** Open the tab Apps and click on "Add new app"

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Llpe99u5FiBf_oc410Z%2F-LlqAvctzb5OCngjsdci%2Fimage.png?alt=media\&token=b4095bfb-4510-4a53-a27e-c3b5a6583011)

### **Step 2.** Select the channel Line and click on "Add Line"

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm4pctr9e_HRuDccpFa%2Fimage.png?alt=media\&token=326201de-0167-470a-89c3-a34cd06ed2d6)

### **Step 3.** Log in to your account **LINE Business ID**

Direct link to **LINE Business ID**: [**https://account.line.biz/login**](https://account.line.biz/login)

You're prompted to choose from 2 authorization methods ("Log in with Line Account" selected)

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm4vH-wsrCbkTgkM30n%2Fimage.png?alt=media\&token=d4ee7c6f-99d9-4572-addf-52e421e65965)

Credentials of **LINE Business ID** - login (e-mail) and password, which have been used during account registration in the mobile application.

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm4w-LizbcT_gZQj6Te%2Fimage.png?alt=media\&token=b63b0427-95dc-4cf6-90da-2f6132692952)

{% hint style="info" %}
Besides you can use the QR-code login method
{% endhint %}

### **Step 4.** Browse to section Accounts and select the one, based on which you will be adding the channel for the integration

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm4worX2_6SlMP6O-Hb%2Fimage.png?alt=media\&token=e3ac4bda-99fc-4bcc-a72f-f2ae3ff41c06)

### Step 5. Copy Basic ID

{% hint style="info" %}
The value should be copied without the symbol @
{% endhint %}

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm4yz8Mt353qgXGsx63%2Fimage.png?alt=media\&token=8cc93813-90a3-4b63-9e5e-f5dac0f7e881)

### Step 6. Go back to Blinger.io and paste Basic ID in the field "Bot id"

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm4zMY-85J25l_dAvdG%2Fimage.png?alt=media\&token=2ff24a62-11c2-4917-8863-5621d1c7ae78)

### Step 7. Open section Messaging API and click on [LINE Developers](https://developers.line.biz/en/)

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm52WfKJu6mCpM9mqk1%2Fimage.png?alt=media\&token=cb610eea-20c1-4f86-b680-09ba621fa031)

### Step 8. In LINE Developers portal select Messaging API and then click on "Start"

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm52ggAkq3oCbYumDBd%2Fimage.png?alt=media\&token=a69d9346-7e9e-44d5-b561-0d9515f676c9)

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm5310JMc3K2XxS-89C%2Fimage.png?alt=media\&token=520d091e-b0c2-44f5-a66c-a73832f09727)

### Step 9. Select already existing provider entry or create a new one

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm53K1AjdvcM4jooyvj%2Fimage.png?alt=media\&token=bc6a0d00-e88f-4b2a-b8dd-9a5595398768)

### Step 10. Select one of the existing channels or create a new one

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm55OnYlT59n23dFP4T%2Fimage.png?alt=media\&token=3d3dd93a-16e0-4800-81d4-d123eef71c26)

### Step 11. Copy Channel ID and Channel secret from Channel Settings tab

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm57jU0pSMTWTcHkp8u%2Fimage.png?alt=media\&token=6959cf9a-d705-4cf4-8c13-41985f37feda)

### Step 12. Go back to Blinger.io and paste Channel ID and Channel secret in the fields "Client id" and "Channel secret" accordingly

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm56icLkNOeXRkcQ5wx%2Fimage.png?alt=media\&token=95a352b7-35ba-462e-a8a4-67e51a80dde7)

### Step 13. Define Webhook URL

To do that you need to click on "Edit" and paste Webhook URL. After than you should confirm the address by clicking "Verify"

{% hint style="warning" %}
In the field Webhook URL you should specify the address, which comprises of two parts:

1. **Address** - [`https://api.blinger.ru/line_webhook?channel_id=`](https://api.blinger.ru/line_webhook?channel_id=)
2. **Value** - `Channel ID`

Note: after symbol "=" you should paste the value **Channel ID** (without spaces and etc.)
{% endhint %}

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm58JfpyDzYk4D6xvUN%2Fimage.png?alt=media\&token=db5e9b90-9646-4319-9002-9ea346001142)

### Step 14. Generate and copy Channel access token

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm5701zhC1-H1pGZdZz%2Fimage.png?alt=media\&token=c4444516-326a-4c9e-bdf2-9105b8f908af)

### Step 15. Go back to Blinger.io and paste Channel access token in the field "Channel access token" and click on "Add"

![](https://2982933755-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB1W87r5cFc0hgB5qdy%2F-Lm4pGPqBqS1N03ggzPa%2F-Lm57P9MZveY4Xg0j4qc%2Fimage.png?alt=media\&token=7810b13a-e104-4fcd-a87c-36a8ed1c10c5)

{% hint style="success" %}

### The integration is completed!

{% endhint %}
