Appearance
@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?
readonlyoptionalapiBaseURL?: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
readonlychannelAccessToken:string
Defined in: lib/line-bot-client.ts:34
Channel access token issued for your LINE Official Account.
dataApiBaseURL?
readonlyoptionaldataApiBaseURL?: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?
readonlyoptionaldefaultHeaders?: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?
readonlyoptionalmanagerBaseURL?: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