Appearance
@line/bot-sdk • Docs
@line/bot-sdk / Client
Class: Client
Deprecated
Use clients generated by openapi spec instead.
Constructors
new Client()
new Client(
config
):Client
Parameters
• config: ClientConfig
Returns
Defined in
Properties
config
config:
ClientConfig
Defined in
Methods
broadcast()
broadcast(
messages
,notificationDisabled
):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
• notificationDisabled: boolean
= false
Returns
Promise
<MessageAPIResponseBase
>
Defined in
changeAudienceGroupAuthorityLevel()
changeAudienceGroupAuthorityLevel(
authorityLevel
):Promise
<object
>
Parameters
• authorityLevel: AudienceGroupAuthorityLevel
Returns
Promise
<object
>
Defined in
createClickAudienceGroup()
createClickAudienceGroup(
clickAudienceGroup
):Promise
<object
&object
>
Parameters
• clickAudienceGroup
• clickAudienceGroup.clickUrl?: string
• clickAudienceGroup.description: string
• clickAudienceGroup.requestId: string
Returns
Promise
<object
& object
>
Defined in
createImpAudienceGroup()
createImpAudienceGroup(
impAudienceGroup
):Promise
<object
&object
>
Parameters
• impAudienceGroup
• impAudienceGroup.description: string
• impAudienceGroup.requestId: string
Returns
Promise
<object
& object
>
Defined in
createRichMenu()
createRichMenu(
richMenu
):Promise
<string
>
Parameters
• richMenu: RichMenu
Returns
Promise
<string
>
Defined in
createRichMenuAlias()
createRichMenuAlias(
richMenuId
,richMenuAliasId
):Promise
<object
>
Parameters
• richMenuId: string
• richMenuAliasId: string
Returns
Promise
<object
>
Defined in
createUploadAudienceGroup()
createUploadAudienceGroup(
uploadAudienceGroup
):Promise
<object
>
Parameters
• uploadAudienceGroup
• uploadAudienceGroup.audiences?: object
[]
• uploadAudienceGroup.description: string
• uploadAudienceGroup.isIfaAudience?: boolean
• uploadAudienceGroup.uploadDescription?: string
Returns
Promise
<object
>
audienceGroupId
audienceGroupId:
number
created
created:
number
description
description:
string
type
type:
string
Defined in
createUploadAudienceGroupByFile()
createUploadAudienceGroupByFile(
uploadAudienceGroup
):Promise
<object
>
Parameters
• uploadAudienceGroup
• uploadAudienceGroup.description: string
• uploadAudienceGroup.file: Readable
| Buffer
• uploadAudienceGroup.isIfaAudience?: boolean
• uploadAudienceGroup.uploadDescription?: string
Returns
Promise
<object
>
audienceGroupId
audienceGroupId:
number
created
created:
number
description
description:
string
type
type:
"UPLOAD"
Defined in
deleteAudienceGroup()
deleteAudienceGroup(
audienceGroupId
):Promise
<object
>
Parameters
• audienceGroupId: string
Returns
Promise
<object
>
Defined in
deleteDefaultRichMenu()
deleteDefaultRichMenu():
Promise
<object
>
Returns
Promise
<object
>
Defined in
deleteRichMenu()
deleteRichMenu(
richMenuId
):Promise
<any
>
Parameters
• richMenuId: string
Returns
Promise
<any
>
Defined in
deleteRichMenuAlias()
deleteRichMenuAlias(
richMenuAliasId
):Promise
<object
>
Parameters
• richMenuAliasId: string
Returns
Promise
<object
>
Defined in
getAudienceGroup()
getAudienceGroup(
audienceGroupId
):Promise
<AudienceGroup
>
Parameters
• audienceGroupId: string
Returns
Promise
<AudienceGroup
>
Defined in
getAudienceGroupAuthorityLevel()
getAudienceGroupAuthorityLevel():
Promise
<object
>
Returns
Promise
<object
>
authorityLevel
authorityLevel:
AudienceGroupAuthorityLevel
Defined in
getAudienceGroups()
getAudienceGroups(
page
,description
?,status
?,size
?,createRoute
?,includesExternalPublicGroups
?):Promise
<object
>
Parameters
• page: number
• description?: string
• status?: AudienceGroupStatus
• size?: number
• createRoute?: AudienceGroupCreateRoute
• includesExternalPublicGroups?: boolean
Returns
Promise
<object
>
audienceGroups
audienceGroups:
AudienceGroups
hasNextPage
hasNextPage:
boolean
page
page:
number
readWriteAudienceGroupTotalCount
readWriteAudienceGroupTotalCount:
number
size
size:
number
totalCount
totalCount:
number
Defined in
getBotFollowersIds()
getBotFollowersIds():
Promise
<string
[]>
Returns
Promise
<string
[]>
Defined in
getBotInfo()
getBotInfo():
Promise
<BotInfoResponse
>
Returns
Promise
<BotInfoResponse
>
Defined in
getDefaultRichMenuId()
getDefaultRichMenuId():
Promise
<string
>
Returns
Promise
<string
>
Defined in
getFriendDemographics()
getFriendDemographics():
Promise
<FriendDemographics
>
Returns
Promise
<FriendDemographics
>
Defined in
getGroupMemberIds()
getGroupMemberIds(
groupId
):Promise
<string
[]>
Parameters
• groupId: string
Returns
Promise
<string
[]>
Defined in
getGroupMemberProfile()
getGroupMemberProfile(
groupId
,userId
):Promise
<Profile
>
Parameters
• groupId: string
• userId: string
Returns
Promise
<Profile
>
Defined in
getGroupMembersCount()
getGroupMembersCount(
groupId
):Promise
<MembersCountResponse
>
Parameters
• groupId: string
Returns
Promise
<MembersCountResponse
>
Defined in
getGroupSummary()
getGroupSummary(
groupId
):Promise
<GroupSummaryResponse
>
Parameters
• groupId: string
Returns
Promise
<GroupSummaryResponse
>
Defined in
getLinkToken()
getLinkToken(
userId
):Promise
<string
>
Parameters
• userId: string
Returns
Promise
<string
>
Defined in
getMessageContent()
getMessageContent(
messageId
):Promise
<Readable
>
Parameters
• messageId: string
Returns
Promise
<Readable
>
Defined in
getNarrowcastProgress()
getNarrowcastProgress(
requestId
):Promise
<NarrowcastProgressResponse
>
Parameters
• requestId: string
Returns
Promise
<NarrowcastProgressResponse
>
Defined in
getNumberOfFollowers()
getNumberOfFollowers(
date
):Promise
<NumberOfFollowersResponse
>
Parameters
• date: string
Returns
Promise
<NumberOfFollowersResponse
>
Defined in
getNumberOfMessageDeliveries()
getNumberOfMessageDeliveries(
date
):Promise
<NumberOfMessageDeliveriesResponse
>
Parameters
• date: string
Returns
Promise
<NumberOfMessageDeliveriesResponse
>
Defined in
getNumberOfMessagesSentThisMonth()
getNumberOfMessagesSentThisMonth():
Promise
<NumberOfMessagesSentThisMonth
>
Returns
Promise
<NumberOfMessagesSentThisMonth
>
Defined in
getNumberOfSentBroadcastMessages()
getNumberOfSentBroadcastMessages(
date
):Promise
<NumberOfMessagesSentResponse
>
Parameters
• date: string
Returns
Promise
<NumberOfMessagesSentResponse
>
Defined in
getNumberOfSentMulticastMessages()
getNumberOfSentMulticastMessages(
date
):Promise
<NumberOfMessagesSentResponse
>
Parameters
• date: string
Returns
Promise
<NumberOfMessagesSentResponse
>
Defined in
getNumberOfSentPushMessages()
getNumberOfSentPushMessages(
date
):Promise
<NumberOfMessagesSentResponse
>
Parameters
• date: string
Returns
Promise
<NumberOfMessagesSentResponse
>
Defined in
getNumberOfSentReplyMessages()
getNumberOfSentReplyMessages(
date
):Promise
<NumberOfMessagesSentResponse
>
Parameters
• date: string
Returns
Promise
<NumberOfMessagesSentResponse
>
Defined in
getProfile()
getProfile(
userId
):Promise
<Profile
>
Parameters
• userId: string
Returns
Promise
<Profile
>
Defined in
getRichMenu()
getRichMenu(
richMenuId
):Promise
<RichMenuResponse
>
Parameters
• richMenuId: string
Returns
Promise
<RichMenuResponse
>
Defined in
getRichMenuAlias()
getRichMenuAlias(
richMenuAliasId
):Promise
<GetRichMenuAliasResponse
>
Parameters
• richMenuAliasId: string
Returns
Promise
<GetRichMenuAliasResponse
>
Defined in
getRichMenuAliasList()
getRichMenuAliasList():
Promise
<GetRichMenuAliasListResponse
>
Returns
Promise
<GetRichMenuAliasListResponse
>
Defined in
getRichMenuIdOfUser()
getRichMenuIdOfUser(
userId
):Promise
<string
>
Parameters
• userId: string
Returns
Promise
<string
>
Defined in
getRichMenuImage()
getRichMenuImage(
richMenuId
):Promise
<Readable
>
Parameters
• richMenuId: string
Returns
Promise
<Readable
>
Defined in
getRichMenuList()
getRichMenuList():
Promise
<RichMenuResponse
[]>
Returns
Promise
<RichMenuResponse
[]>
Defined in
getRoomMemberIds()
getRoomMemberIds(
roomId
):Promise
<string
[]>
Parameters
• roomId: string
Returns
Promise
<string
[]>
Defined in
getRoomMemberProfile()
getRoomMemberProfile(
roomId
,userId
):Promise
<Profile
>
Parameters
• roomId: string
• userId: string
Returns
Promise
<Profile
>
Defined in
getRoomMembersCount()
getRoomMembersCount(
roomId
):Promise
<MembersCountResponse
>
Parameters
• roomId: string
Returns
Promise
<MembersCountResponse
>
Defined in
getStatisticsPerUnit()
getStatisticsPerUnit(
customAggregationUnit
,from
,to
):Promise
<StatisticsPerUnit
>
Parameters
• customAggregationUnit: string
• from: string
• to: string
Returns
Promise
<StatisticsPerUnit
>
Defined in
getTargetLimitForAdditionalMessages()
getTargetLimitForAdditionalMessages():
Promise
<TargetLimitForAdditionalMessages
>
Returns
Promise
<TargetLimitForAdditionalMessages
>
Defined in
getUserInteractionStatistics()
getUserInteractionStatistics(
requestId
):Promise
<UserInteractionStatistics
>
Parameters
• requestId: string
Returns
Promise
<UserInteractionStatistics
>
Defined in
getWebhookEndpointInfo()
getWebhookEndpointInfo():
Promise
<WebhookEndpointInfoResponse
>
Returns
Promise
<WebhookEndpointInfoResponse
>
Defined in
leaveGroup()
leaveGroup(
groupId
):Promise
<any
>
Parameters
• groupId: string
Returns
Promise
<any
>
Defined in
leaveRoom()
leaveRoom(
roomId
):Promise
<any
>
Parameters
• roomId: string
Returns
Promise
<any
>
Defined in
linkRichMenuToMultipleUsers()
linkRichMenuToMultipleUsers(
richMenuId
,userIds
):Promise
<any
>
Parameters
• richMenuId: string
• userIds: string
[]
Returns
Promise
<any
>
Defined in
linkRichMenuToUser()
linkRichMenuToUser(
userId
,richMenuId
):Promise
<any
>
Parameters
• userId: string
• richMenuId: string
Returns
Promise
<any
>
Defined in
multicast()
multicast(
to
,messages
,notificationDisabled
,customAggregationUnits
?):Promise
<MessageAPIResponseBase
>
Parameters
• to: string
[]
• messages: Message
| Message
[]
• notificationDisabled: boolean
= false
• customAggregationUnits?: string
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
narrowcast()
narrowcast(
messages
,recipient
?,filter
?,limit
?,notificationDisabled
?):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
• recipient?: ReceieptObject
• filter?
• filter.demographic?: DemographicFilterObject
• limit?
• limit.max?: number
• limit.upToRemainingQuota?: boolean
• notificationDisabled?: boolean
Returns
Promise
<MessageAPIResponseBase
>
Defined in
pushMessage()
pushMessage(
to
,messages
,notificationDisabled
,customAggregationUnits
?):Promise
<MessageAPIResponseBase
>
Parameters
• to: string
• messages: Message
| Message
[]
• notificationDisabled: boolean
= false
• customAggregationUnits?: string
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
replyMessage()
replyMessage(
replyToken
,messages
,notificationDisabled
):Promise
<MessageAPIResponseBase
>
Parameters
• replyToken: string
• messages: Message
| Message
[]
• notificationDisabled: boolean
= false
Returns
Promise
<MessageAPIResponseBase
>
Defined in
setDefaultRichMenu()
setDefaultRichMenu(
richMenuId
):Promise
<object
>
Parameters
• richMenuId: string
Returns
Promise
<object
>
Defined in
setDescriptionAudienceGroup()
setDescriptionAudienceGroup(
description
,audienceGroupId
):Promise
<object
>
Parameters
• description: string
• audienceGroupId: string
Returns
Promise
<object
>
Defined in
setRequestOptionOnce()
setRequestOptionOnce(
option
):void
Parameters
• option: Partial
<RequestOption
>
Returns
void
Defined in
setRichMenuImage()
setRichMenuImage(
richMenuId
,data
,contentType
?):Promise
<any
>
Parameters
• richMenuId: string
• data: Readable
| Buffer
• contentType?: string
Returns
Promise
<any
>
Defined in
setWebhookEndpointUrl()
setWebhookEndpointUrl(
endpoint
):Promise
<object
>
Parameters
• endpoint: string
Returns
Promise
<object
>
Defined in
testWebhookEndpoint()
testWebhookEndpoint(
endpoint
?):Promise
<TestWebhookEndpointResponse
>
Parameters
• endpoint?: string
Returns
Promise
<TestWebhookEndpointResponse
>
Defined in
unlinkRichMenuFromUser()
unlinkRichMenuFromUser(
userId
):Promise
<any
>
Parameters
• userId: string
Returns
Promise
<any
>
Defined in
unlinkRichMenusFromMultipleUsers()
unlinkRichMenusFromMultipleUsers(
userIds
):Promise
<any
>
Parameters
• userIds: string
[]
Returns
Promise
<any
>
Defined in
updateRichMenuAlias()
updateRichMenuAlias(
richMenuAliasId
,richMenuId
):Promise
<object
>
Parameters
• richMenuAliasId: string
• richMenuId: string
Returns
Promise
<object
>
Defined in
updateUploadAudienceGroup()
updateUploadAudienceGroup(
uploadAudienceGroup
,httpConfig
?):Promise
<object
>
Parameters
• uploadAudienceGroup
• uploadAudienceGroup.audienceGroupId: number
• uploadAudienceGroup.audiences?: object
[]
• uploadAudienceGroup.description?: string
• uploadAudienceGroup.uploadDescription?: string
• httpConfig?: Partial
<AxiosRequestConfig
<any
>>
Returns
Promise
<object
>
Defined in
updateUploadAudienceGroupByFile()
updateUploadAudienceGroupByFile(
uploadAudienceGroup
,httpConfig
?):Promise
<object
>
Parameters
• uploadAudienceGroup
• uploadAudienceGroup.audienceGroupId: number
• uploadAudienceGroup.file?: Readable
| Buffer
• uploadAudienceGroup.uploadDescription?: string
• httpConfig?: Partial
<AxiosRequestConfig
<any
>>
Returns
Promise
<object
>
Defined in
validateBroadcastMessageObjects()
validateBroadcastMessageObjects(
messages
):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
validateCustomAggregationUnits()
validateCustomAggregationUnits(
units
):object
Parameters
• units: string
[]
Returns
object
messages
messages:
string
[]
valid
valid:
boolean
Defined in
validateMulticastMessageObjects()
validateMulticastMessageObjects(
messages
):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
validateNarrowcastMessageObjects()
validateNarrowcastMessageObjects(
messages
):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
validatePushMessageObjects()
validatePushMessageObjects(
messages
):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
validateReplyMessageObjects()
validateReplyMessageObjects(
messages
):Promise
<MessageAPIResponseBase
>
Parameters
• messages: Message
| Message
[]
Returns
Promise
<MessageAPIResponseBase
>
Defined in
validateRichMenu()
validateRichMenu(
richMenu
):Promise
<object
>
Parameters
• richMenu: RichMenu
Returns
Promise
<object
>