|
32 | 32 | import com.linecorp.bot.audience.model.GetAudienceDataResponse;
|
33 | 33 | import com.linecorp.bot.audience.model.GetAudienceGroupAuthorityLevelResponse;
|
34 | 34 | import com.linecorp.bot.audience.model.GetAudienceGroupsResponse;
|
| 35 | +import com.linecorp.bot.audience.model.GetSharedAudienceDataResponse; |
| 36 | +import com.linecorp.bot.audience.model.GetSharedAudienceGroupsResponse; |
35 | 37 | import com.linecorp.bot.audience.model.UpdateAudienceGroupAuthorityLevelRequest;
|
36 | 38 | import com.linecorp.bot.audience.model.UpdateAudienceGroupDescriptionRequest;
|
37 | 39 | import com.linecorp.bot.client.base.ApiAuthenticatedClientBuilder;
|
@@ -166,6 +168,44 @@ CompletableFuture<Result<GetAudienceGroupsResponse>> getAudienceGroups(
|
166 | 168 | @Query("includesExternalPublicGroups") Boolean includesExternalPublicGroups,
|
167 | 169 | @Query("createRoute") AudienceGroupCreateRoute createRoute);
|
168 | 170 |
|
| 171 | + /** |
| 172 | + * Gets audience data. |
| 173 | + * |
| 174 | + * @param audienceGroupId The audience ID. (required) |
| 175 | + * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-shared-audience"> |
| 176 | + * Documentation</a> |
| 177 | + */ |
| 178 | + @GET("/v2/bot/audienceGroup/shared/{audienceGroupId}") |
| 179 | + CompletableFuture<Result<GetSharedAudienceDataResponse>> getSharedAudienceData( |
| 180 | + @Path("audienceGroupId") Long audienceGroupId); |
| 181 | + |
| 182 | + /** |
| 183 | + * Gets data for more than one audience, including those shared by the Business Manager. |
| 184 | + * |
| 185 | + * @param page The page to return when getting (paginated) results. Must be 1 or higher. |
| 186 | + * (required) |
| 187 | + * @param description The name of the audience(s) to return. You can search for partial matches. |
| 188 | + * This is case-insensitive, meaning AUDIENCE and audience are considered identical. If |
| 189 | + * omitted, the name of the audience(s) will not be used as a search criterion. (optional) |
| 190 | + * @param status The status of the audience(s) to return. If omitted, the status of the |
| 191 | + * audience(s) will not be used as a search criterion. (optional) |
| 192 | + * @param size The number of audiences per page. Default: 20 Max: 40 (optional) |
| 193 | + * @param createRoute How the audience was created. If omitted, all audiences are included. |
| 194 | + * `OA_MANAGER`: Return only audiences created with LINE Official Account Manager |
| 195 | + * (opens new window). `MESSAGING_API`: Return only audiences created with Messaging |
| 196 | + * API. (optional) |
| 197 | + * @see <a |
| 198 | + * href="https://developers.line.biz/en/reference/messaging-api/#get-shared-audience-list"> |
| 199 | + * Documentation</a> |
| 200 | + */ |
| 201 | + @GET("/v2/bot/audienceGroup/shared/list") |
| 202 | + CompletableFuture<Result<GetSharedAudienceGroupsResponse>> getSharedAudienceGroups( |
| 203 | + @Query("page") Long page, |
| 204 | + @Query("description") String description, |
| 205 | + @Query("status") AudienceGroupStatus status, |
| 206 | + @Query("size") Long size, |
| 207 | + @Query("createRoute") AudienceGroupCreateRoute createRoute); |
| 208 | + |
169 | 209 | /**
|
170 | 210 | * Change the authority level of the audience
|
171 | 211 | *
|
|
0 commit comments