Skip to content

@line/bot-sdkDocs


@line/bot-sdk / manageAudience / ManageAudienceBlobClient

Class: ManageAudienceBlobClient

Constructors

new ManageAudienceBlobClient()

new ManageAudienceBlobClient(config): ManageAudienceBlobClient

Parameters

config: httpClientConfig

Returns

ManageAudienceBlobClient

Defined in

lib/manage-audience/api/manageAudienceBlobClient.ts:37

Methods

addUserIdsToAudience()

addUserIdsToAudience(file, audienceGroupId?, uploadDescription?): Promise<MessageAPIResponseBase>

Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by file).

Parameters

file: Blob

A text file with one user ID or IFA entered per line. Specify text/plain as Content-Type. Max file number: 1 Max number: 1,500,000

audienceGroupId?: number

The audience ID.

uploadDescription?: string

The description to register with the job

Returns

Promise<MessageAPIResponseBase>

See

Documentation

Defined in

lib/manage-audience/api/manageAudienceBlobClient.ts:68


addUserIdsToAudienceWithHttpInfo()

addUserIdsToAudienceWithHttpInfo(file, audienceGroupId?, uploadDescription?): Promise<ApiResponseType<MessageAPIResponseBase>>

Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by file).. This method includes HttpInfo object to return additional information.

Parameters

file: Blob

A text file with one user ID or IFA entered per line. Specify text/plain as Content-Type. Max file number: 1 Max number: 1,500,000

audienceGroupId?: number

The audience ID.

uploadDescription?: string

The description to register with the job

Returns

Promise<ApiResponseType<MessageAPIResponseBase>>

See

Documentation

Defined in

lib/manage-audience/api/manageAudienceBlobClient.ts:91


createAudienceForUploadingUserIds()

createAudienceForUploadingUserIds(file, description?, isIfaAudience?, uploadDescription?): Promise<CreateAudienceGroupResponse>

Create audience for uploading user IDs (by file).

Parameters

file: Blob

A text file with one user ID or IFA entered per line. Specify text/plain as Content-Type. Max file number: 1 Max number: 1,500,000

description?: string

The audience\'s name. This is case-insensitive, meaning AUDIENCE and audience are considered identical. Max character limit: 120

isIfaAudience?: boolean

To specify recipients by IFAs: set true. To specify recipients by user IDs: set false or omit isIfaAudience property.

uploadDescription?: string

The description to register for the job (in jobs[].description).

Returns

Promise<CreateAudienceGroupResponse>

See

Documentation

Defined in

lib/manage-audience/api/manageAudienceBlobClient.ts:118


createAudienceForUploadingUserIdsWithHttpInfo()

createAudienceForUploadingUserIdsWithHttpInfo(file, description?, isIfaAudience?, uploadDescription?): Promise<ApiResponseType<CreateAudienceGroupResponse>>

Create audience for uploading user IDs (by file).. This method includes HttpInfo object to return additional information.

Parameters

file: Blob

A text file with one user ID or IFA entered per line. Specify text/plain as Content-Type. Max file number: 1 Max number: 1,500,000

description?: string

The audience\'s name. This is case-insensitive, meaning AUDIENCE and audience are considered identical. Max character limit: 120

isIfaAudience?: boolean

To specify recipients by IFAs: set true. To specify recipients by user IDs: set false or omit isIfaAudience property.

uploadDescription?: string

The description to register for the job (in jobs[].description).

Returns

Promise<ApiResponseType<CreateAudienceGroupResponse>>

See

Documentation

Defined in

lib/manage-audience/api/manageAudienceBlobClient.ts:144