SunshineConversationsClient::Line

August 27, 2025 · View on GitHub

Properties

NameTypeDescriptionNotes
default_responder_idStringThe 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 the <a href=&quot;https://developer.zendesk.com/documentation/conversations/messaging-platform/programmable-conversations/switchboard/#default-integration-assignment\&quot;&gt;Switchboard guide</a>.[optional]
default_responderDefaultResponderDefaultResponder[optional]
typeStringFor 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}&#x60;.[optional][default to 'line']
channel_idStringLINE 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_secretStringLINE 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_tokenStringLINE Channel Access Token.[optional]
service_codeStringLINE Service Code.[optional]
switcher_secretStringLINE Switcher Secret.[optional]
qr_code_urlStringURL provided by LINE in the Developer Console.[optional]
line_idStringLINE Basic ID. Is automatically set when qrCodeUrl is updated.[optional][readonly]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Line.new(
  default_responder_id: null,
  default_responder: null,
  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
)