パッケージ com.linecorp.bot.client

インタフェース RetryableLineMessagingClient

    • メソッドの概要

      すべてのメソッド staticメソッド インスタンス・メソッド abstractメソッド 
      修飾子とタイプ メソッド 説明
      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 RetryableLineMessagingClientBuilder builder​(ChannelTokenSupplier channelTokenSupplier)  
      static RetryableLineMessagingClientBuilder builder​(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.
    • メソッドの詳細

      • 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.

        関連項目:
        //developers.line.me/en/reference/messaging-api/#send-push-message
      • 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.

        関連項目:
        //developers.line.me/en/reference/messaging-api/#send-multicast-messages
      • 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.