Package com.linecorp.bot.client
Interface RetryableLineMessagingClient
-
- All Known Implementing Classes:
RetryableLineMessagingClientImpl
public interface RetryableLineMessagingClient
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>broadcast(java.util.UUID retryKey, com.linecorp.bot.model.Broadcast broadcast)Sends push messages to multiple users at any time.static RetryableLineMessagingClientBuilderbuilder(ChannelTokenSupplier channelTokenSupplier)static RetryableLineMessagingClientBuilderbuilder(java.lang.String channelToken)java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>multicast(java.util.UUID retryKey, com.linecorp.bot.model.Multicast multicast)Send messages to multiple users at any time.java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>narrowcast(java.util.UUID retryKey, com.linecorp.bot.model.Narrowcast broadcast)Sends a push message to multiple users.java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>pushMessage(java.util.UUID retryKey, com.linecorp.bot.model.PushMessage pushMessage)Send messages to users when you want to.
-
-
-
Method Detail
-
pushMessage
java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> pushMessage(java.util.UUID retryKey, com.linecorp.bot.model.PushMessage pushMessage)Send messages to users when you want to.INFO: Use of the Push Message API is limited to certain plans.
-
multicast
java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> multicast(java.util.UUID retryKey, com.linecorp.bot.model.Multicast multicast)Send messages to multiple users at any time. IDs of groups or rooms cannot be used.INFO: Only available for plans which support push messages. Messages cannot be sent to groups or rooms.
INFO: Use IDs returned via the webhook event of source users. IDs of groups or rooms cannot be used. Do not use the LINE ID found on the LINE app.
-
broadcast
java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> broadcast(java.util.UUID retryKey, com.linecorp.bot.model.Broadcast broadcast)Sends push messages to multiple users at any time. Note: LINE@ accounts cannot call this API endpoint. Please migrate it to a LINE official account. For more information, see Migration of LINE@ accounts.
-
narrowcast
java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> narrowcast(java.util.UUID retryKey, com.linecorp.bot.model.Narrowcast broadcast)Sends a push message to multiple users. You can specify recipients using attributes (such as age, gender, OS, and region) or by retargeting (audiences). Messages cannot be sent to groups or rooms.Note: LINE-@ accounts cannot call this API endpoint. Please migrate it to a LINE official account. For more information, see Migration of LINE@ accounts.
-
builder
static RetryableLineMessagingClientBuilder builder(java.lang.String channelToken)
-
builder
static RetryableLineMessagingClientBuilder builder(ChannelTokenSupplier channelTokenSupplier)
-
-