Skip to content

@line/bot-sdk


@line/bot-sdk / LineBotClientChannelAccessTokenConfig

Interface: LineBotClientChannelAccessTokenConfig

Defined in: lib/line-bot-client.ts:32

Configuration for LineBotClient using a channel access token.

Example

typescript
const client = LineBotClient.fromChannelAccessToken({
  channelAccessToken: "YOUR_CHANNEL_ACCESS_TOKEN",
});

Extends

  • LineBotClientCommonConfig

Properties

apiBaseURL?

readonly optional apiBaseURL?: string

Defined in: lib/line-bot-client.ts:15

Base URL for the LINE Messaging API. Defaults to https://api.line.me

Inherited from

LineBotClientCommonConfig.apiBaseURL


channelAccessToken

readonly channelAccessToken: string

Defined in: lib/line-bot-client.ts:34

Channel access token issued for your LINE Official Account.


dataApiBaseURL?

readonly optional dataApiBaseURL?: string

Defined in: lib/line-bot-client.ts:17

Base URL for the LINE data API (used for blob/binary operations). Defaults to https://api-data.line.me

Inherited from

LineBotClientCommonConfig.dataApiBaseURL


defaultHeaders?

readonly optional defaultHeaders?: Record<string, string>

Defined in: lib/line-bot-client.ts:13

Default HTTP headers to include in every API request.

Inherited from

LineBotClientCommonConfig.defaultHeaders


managerBaseURL?

readonly optional managerBaseURL?: string

Defined in: lib/line-bot-client.ts:19

Base URL for the LINE Manager API. Defaults to https://manager.line.biz

Inherited from

LineBotClientCommonConfig.managerBaseURL