{"_id":"5954fb43e06192001597a1b0","project":"54eb50e5615ffc1900305a16","version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":28,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915","59b8eeeb707542001076d3b6"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"5954bc387a147f001b918915","project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-06-29T08:37:12.853Z","from_sync":false,"order":7,"slug":"omni-chat","title":"OMNI Chat"},"user":"57a98d832242630e00cc8df7","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-29T13:06:11.576Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"If you’re planning to reach your customers in Southeast Asia, especially Japan, Taiwan and Thailand, you should definitely communicate via LINE messenger where this app is the most used chat app.\n\nDeveloped in 2011 in Japan, LINE has quickly become a very popular messaging platform in Asia, with more than 600 million users and around 200 million active daily users.\n\nOne of the keys of LINE’s stickiness is LINE stickers. That’s proved by the fact that every day more than 2.5 billion stickers are sent. Also, LINE has found a way to keep their users engaged by issuing the LINE game, which fastly became it’s extremely popular feature. \nUsing LINE as a channel you will definitely get close to your customers in a friendly and informal way, especially if you want to reach Millennials and Post-Millennials. \n[block:api-header]\n{\n  \"title\": \"Signup for using LINE\"\n}\n[/block]\nThe first step in engaging your users over Line is to signup for Line by doing the following:\n\n1. Download the LINE app and perform a signup\n2. Add an email inside the LINE app by going to Settings>Account>Email registration.\n3. With email and password added in the previous step, you will gain access to [LINE Business Center](https://business.line.me/en/).\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/48b44dd-line_email_register.PNG\",\n        \"line_email_register.PNG\",\n        640,\n        1136,\n        \"#2b3746\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"LINE account types\"\n}\n[/block]\nLine integration can be used with both the **Line:::at::: account** and the **Line Official account.**\n\nFor opening a LINE Official account you need to submit a [partnership proposal](https://partner.line.me/en/partner/join) to LINE.\n\nTo get a Line@ account please follow the instructions below.\nIf you do not have a Line@ account please follow the instructions [here](https://developers.line.me/messaging-api/getting-started#create_lineat) to open one using [LINE Business Center](https://business.line.me/en/).\nFor existing Line@ accounts, you will need to enable API using [LINE Business Center](https://business.line.me/en/) messaging based on the instructions [here](https://developers.line.me/messaging-api/getting-started#apply_messagingapi).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Integration setup\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/f61293b-integration.png\",\n        \"integration.png\",\n        320,\n        98,\n        \"#e4dcd5\"\n      ]\n    }\n  ]\n}\n[/block]\nTo start sending messages over LINE, first you need to register your LINE channel on Infobip's platform. This is done by adding the LINE integration to the application you have already created [here](/docs/omni-chat-application). \n\nUse **Channel Access Token**  as the value of `accessToken` parameter, and **Channel Secret** as the value of `secret` parameter.\nFor more details on how to get Channel Access Token see [here](https://developers.line.me/messaging-api/getting-started#set_up_bot).\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/77fa5ce-line_setup.jpg\",\n        \"line_setup.jpg\",\n        932,\n        1508,\n        \"#ebebf2\"\n      ]\n    }\n  ]\n}\n[/block]\n###Request example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /omnichat/1/applications/0F3C3F29829FAB88714BA205BEC6D28F/integrations/line HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\n\\n{\\n  \\\"channel\\\": {\\n    \\\"accessToken\\\":\\\"...\\\",\\n    \\\"secret\\\":\\\"...\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nResponse\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"channel\\\": {\\n    \\\"id\\\": 1234,\\n    \\\"accessToken\\\": \\\"...\\\",\\n    \\\"name\\\": \\\"Line Channel Name\\\",\\n    \\\"imageUrl\\\": \\\"Line Channel Image Url\\\",\\n    \\\"secret\\\":\\\"...\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n**That's it!** You are now ready to send test messages over API by performing a [Send message](doc:omni-chat-send-message).\n\nEvery message we receive from your subscriber will be forwarded to the URL you provided and is described in more details in the [Receive message](/docs/omni-chat-receive-message) section.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"In [LINE Business Center](https://business.line.me/en/) described configure the webhook `https://api.infobip.com/omnichat/1/accounts/{accountKey}/applications/{applicationKey}/integrations/line/webhook`, by replacing a placeholder {applicationKey} with the value previously obtained from Infobip.\\nTo get accountKey use [Account: Get](doc:account-get).\\n\\nPlease find detailed instructions [here](https://developers.line.me/messaging-api/getting-started#set_up_bot).\",\n  \"title\": \"Webhook setup\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/e4f3d01-line_webhook.jpg\",\n        \"line_webhook.jpg\",\n        913,\n        499,\n        \"#e3e9eb\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"How can my organization contact people over LINE?\",\n  \"body\": \"There are several ways your end users can opt-in to receive your messages as shown on the below.\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/cc7b10e-line_optin.PNG\",\n        \"line_optin.PNG\",\n        815,\n        560,\n        \"#ecf9f9\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"omni-chat-line-integration","type":"basic","title":"LINE integration"}
If you’re planning to reach your customers in Southeast Asia, especially Japan, Taiwan and Thailand, you should definitely communicate via LINE messenger where this app is the most used chat app. Developed in 2011 in Japan, LINE has quickly become a very popular messaging platform in Asia, with more than 600 million users and around 200 million active daily users. One of the keys of LINE’s stickiness is LINE stickers. That’s proved by the fact that every day more than 2.5 billion stickers are sent. Also, LINE has found a way to keep their users engaged by issuing the LINE game, which fastly became it’s extremely popular feature. Using LINE as a channel you will definitely get close to your customers in a friendly and informal way, especially if you want to reach Millennials and Post-Millennials. [block:api-header] { "title": "Signup for using LINE" } [/block] The first step in engaging your users over Line is to signup for Line by doing the following: 1. Download the LINE app and perform a signup 2. Add an email inside the LINE app by going to Settings>Account>Email registration. 3. With email and password added in the previous step, you will gain access to [LINE Business Center](https://business.line.me/en/). [block:image] { "images": [ { "image": [ "https://files.readme.io/48b44dd-line_email_register.PNG", "line_email_register.PNG", 640, 1136, "#2b3746" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "LINE account types" } [/block] Line integration can be used with both the **Line@ account** and the **Line Official account.** For opening a LINE Official account you need to submit a [partnership proposal](https://partner.line.me/en/partner/join) to LINE. To get a Line@ account please follow the instructions below. If you do not have a Line@ account please follow the instructions [here](https://developers.line.me/messaging-api/getting-started#create_lineat) to open one using [LINE Business Center](https://business.line.me/en/). For existing Line@ accounts, you will need to enable API using [LINE Business Center](https://business.line.me/en/) messaging based on the instructions [here](https://developers.line.me/messaging-api/getting-started#apply_messagingapi). [block:api-header] { "type": "basic", "title": "Integration setup" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/f61293b-integration.png", "integration.png", 320, 98, "#e4dcd5" ] } ] } [/block] To start sending messages over LINE, first you need to register your LINE channel on Infobip's platform. This is done by adding the LINE integration to the application you have already created [here](/docs/omni-chat-application). Use **Channel Access Token** as the value of `accessToken` parameter, and **Channel Secret** as the value of `secret` parameter. For more details on how to get Channel Access Token see [here](https://developers.line.me/messaging-api/getting-started#set_up_bot). [block:image] { "images": [ { "image": [ "https://files.readme.io/77fa5ce-line_setup.jpg", "line_setup.jpg", 932, 1508, "#ebebf2" ] } ] } [/block] ###Request example [block:code] { "codes": [ { "code": "POST /omnichat/1/applications/0F3C3F29829FAB88714BA205BEC6D28F/integrations/line HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\n\n{\n \"channel\": {\n \"accessToken\":\"...\",\n \"secret\":\"...\"\n }\n}", "language": "json" } ] } [/block] Response [block:code] { "codes": [ { "code": "{\n \"channel\": {\n \"id\": 1234,\n \"accessToken\": \"...\",\n \"name\": \"Line Channel Name\",\n \"imageUrl\": \"Line Channel Image Url\",\n \"secret\":\"...\"\n }\n}", "language": "json" } ] } [/block] **That's it!** You are now ready to send test messages over API by performing a [Send message](doc:omni-chat-send-message). Every message we receive from your subscriber will be forwarded to the URL you provided and is described in more details in the [Receive message](/docs/omni-chat-receive-message) section. [block:callout] { "type": "warning", "body": "In [LINE Business Center](https://business.line.me/en/) described configure the webhook `https://api.infobip.com/omnichat/1/accounts/{accountKey}/applications/{applicationKey}/integrations/line/webhook`, by replacing a placeholder {applicationKey} with the value previously obtained from Infobip.\nTo get accountKey use [Account: Get](doc:account-get).\n\nPlease find detailed instructions [here](https://developers.line.me/messaging-api/getting-started#set_up_bot).", "title": "Webhook setup" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/e4f3d01-line_webhook.jpg", "line_webhook.jpg", 913, 499, "#e3e9eb" ], "sizing": "full" } ] } [/block] [block:callout] { "type": "info", "title": "How can my organization contact people over LINE?", "body": "There are several ways your end users can opt-in to receive your messages as shown on the below." } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/cc7b10e-line_optin.PNG", "line_optin.PNG", 815, 560, "#ecf9f9" ], "sizing": "full" } ] } [/block]