Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2.9 KB

File metadata and controls

35 lines (28 loc) · 2.9 KB

SunshineConversationsClient::Line

Properties

Name Type Description Notes
type String For LINE, each of your customers will need to manually configure a webhook in their LINE configuration page that will point to Sunshine Conversations servers. You must instruct your customers how to configure this manually on their LINE bot page. Once you’ve acquired all the required information, call the Create Integration endpoint. Then, using the returned integration _id, your customer must set the Callback URL field in their LINE Business Center page. The URL should look like the following: `https://app.smooch.io:443/api/line/webhooks/{appId}/{integrationId}`. [optional] [default to 'line']
channel_id String LINE Channel ID. Can be omitted along with `channelSecret` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE. [optional]
channel_secret String LINE Channel Secret. Can be omitted along with `channelId` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE. [optional]
channel_access_token String LINE Channel Access Token. [optional]
service_code String LINE Service Code. [optional]
switcher_secret String LINE Switcher Secret. [optional]
qr_code_url String URL provided by LINE in the Developer Console. [optional]
line_id String LINE Basic ID. Is automatically set when qrCodeUrl is updated. [optional] [readonly]
default_responder_id String The default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to <a href=&quot;https://docs.smooch.io/guide/switchboard/#per-channel-default-responder\&quot;&gt;Per-channel default responder</a> guide. [optional]
default_responder DefaultResponderDefaultResponder [optional]

Code Sample

require 'SunshineConversationsClient'

instance = SunshineConversationsClient::Line.new(type: null,
                                 channel_id: 1286564967,
                                 channel_secret: your_line_channel_secret,
                                 channel_access_token: your_line_channel_token,
                                 service_code: your_line_service_code,
                                 switcher_secret: your_line_switcher_secret,
                                 qr_code_url: https://qr-official.line.me/M/1O4fb8.png,
                                 line_id: 104fb8,
                                 default_responder_id: null,
                                 default_responder: null)