-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add /v2/bot/audienceGroup/shared path (#1160)
line/line-openapi#85 # Shared Audiences in Business Manager API Support We have added and supported new API endpoints related to Shared Audiences in Business Manager. ## API to Get Shared Audience Information You can obtain detailed information about a specific audience shared in Business Manager by calling the endpoint: - GET `https://api.line.me/v2/bot/audienceGroup/shared/{audienceGroupId}` ## API to Get List of Shared Audiences You can acquire a list of audiences shared in Business Manager using the following endpoint: - GET `https://api.line.me/v2/bot/audienceGroup/shared/list` By using the "Get Shared Audience Information" endpoint, you can retrieve more detailed data about each audience. ## Documents and Reference - News Announcement: [Shared Audience Feature Release](https://developers.line.biz/en/news/2025/02/12/shared-audience/) - API Reference: - [Get List of Shared Audiences](https://developers.line.biz/en/reference/messaging-api/#get-shared-audience-list) - [Get Shared Audience Information](https://developers.line.biz/en/reference/messaging-api/#get-shared-audience) - Documentation on Audience Sharing: [Using Audience Sharing](https://developers.line.biz/en/docs/messaging-api/using-audience/#audience-sharing) For more information, please refer to the links provided above. Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
434d884
commit d4ee02c
Showing
10 changed files
with
544 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* LINE Messaging API | ||
* This document describes LINE Messaging API. | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
/** | ||
* Adaccount | ||
*/ | ||
export type Adaccount = { | ||
/** | ||
* Ad account name. | ||
*/ | ||
name?: string /**/; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* LINE Messaging API | ||
* This document describes LINE Messaging API. | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
/** | ||
* Owner of this audience group. | ||
*/ | ||
export type DetailedOwner = { | ||
/** | ||
* Service name where the audience group has been created. | ||
*/ | ||
serviceType?: string /**/; | ||
/** | ||
* Owner ID in the service. | ||
*/ | ||
id?: string /**/; | ||
/** | ||
* Owner account name. | ||
*/ | ||
name?: string /**/; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
lib/manage-audience/model/getSharedAudienceDataResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* LINE Messaging API | ||
* This document describes LINE Messaging API. | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { AudienceGroup } from "./audienceGroup.js"; | ||
import { AudienceGroupJob } from "./audienceGroupJob.js"; | ||
import { DetailedOwner } from "./detailedOwner.js"; | ||
|
||
/** | ||
* Get audience data | ||
*/ | ||
export type GetSharedAudienceDataResponse = { | ||
/** | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-group">audienceGroup Documentation</a> | ||
*/ | ||
audienceGroup?: AudienceGroup /**/; | ||
/** | ||
* An array of jobs. This array is used to keep track of each attempt to add new user IDs or IFAs to an audience for uploading user IDs. Empty array is returned for any other type of audience. Max: 50 | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-group">jobs Documentation</a> | ||
*/ | ||
jobs?: Array<AudienceGroupJob> /**/; | ||
/** | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-group">owner Documentation</a> | ||
*/ | ||
owner?: DetailedOwner /**/; | ||
}; |
55 changes: 55 additions & 0 deletions
55
lib/manage-audience/model/getSharedAudienceGroupsResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* LINE Messaging API | ||
* This document describes LINE Messaging API. | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { AudienceGroup } from "./audienceGroup.js"; | ||
|
||
/** | ||
* Gets data for more than one audience. | ||
*/ | ||
export type GetSharedAudienceGroupsResponse = { | ||
/** | ||
* An array of audience data. If there are no audiences that match the specified filter, an empty array will be returned. | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">audienceGroups Documentation</a> | ||
*/ | ||
audienceGroups?: Array<AudienceGroup> /**/; | ||
/** | ||
* true when this is not the last page. | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">hasNextPage Documentation</a> | ||
*/ | ||
hasNextPage?: boolean /**/; | ||
/** | ||
* The total number of audiences that can be returned with the specified filter. | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">totalCount Documentation</a> | ||
*/ | ||
totalCount?: number /**/; | ||
/** | ||
* Of the audiences you can get with the specified filter, the number of audiences with the update permission set to READ_WRITE. | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">readWriteAudienceGroupTotalCount Documentation</a> | ||
*/ | ||
readWriteAudienceGroupTotalCount?: number /**/; | ||
/** | ||
* The current page number. | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">page Documentation</a> | ||
*/ | ||
page?: number /**/; | ||
/** | ||
* The maximum number of audiences on the current page. | ||
* | ||
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">size Documentation</a> | ||
*/ | ||
size?: number /**/; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.