Class MessagesClient


  • public class MessagesClient
    extends java.lang.Object
    • Constructor Detail

      • MessagesClient

        public MessagesClient​(ClientOptions clientOptions)
    • Method Detail

      • get

        public MessageDetails get​(java.lang.String messageId)
        Fetch the status of a message you've previously sent.
      • get

        public MessageDetails get​(java.lang.String messageId,
                                  RequestOptions requestOptions)
        Fetch the status of a message you've previously sent.
      • cancel

        public MessageDetails cancel​(java.lang.String messageId)
        Cancel a message that is currently in the process of being delivered. A well-formatted API call to the cancel message API will return either 200 status code for a successful cancellation or 409 status code for an unsuccessful cancellation. Both cases will include the actual message record in the response body (see details below).
      • cancel

        public MessageDetails cancel​(java.lang.String messageId,
                                     IdempotentRequestOptions requestOptions)
        Cancel a message that is currently in the process of being delivered. A well-formatted API call to the cancel message API will return either 200 status code for a successful cancellation or 409 status code for an unsuccessful cancellation. Both cases will include the actual message record in the response body (see details below).
      • getHistory

        public MessageHistoryResponse getHistory​(java.lang.String messageId)
        Fetch the array of events of a message you've previously sent.
      • archive

        public void archive​(java.lang.String requestId)
      • archive

        public void archive​(java.lang.String requestId,
                            RequestOptions requestOptions)