Class MessagesClient
- java.lang.Object
-
- com.courier.api.resources.messages.MessagesClient
-
public class MessagesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description MessagesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarchive(java.lang.String requestId)voidarchive(java.lang.String requestId, RequestOptions requestOptions)MessageDetailscancel(java.lang.String messageId)Cancel a message that is currently in the process of being delivered.MessageDetailscancel(java.lang.String messageId, IdempotentRequestOptions requestOptions)Cancel a message that is currently in the process of being delivered.MessageDetailsExtendedget(java.lang.String messageId)Fetch the status of a message you've previously sent.MessageDetailsExtendedget(java.lang.String messageId, RequestOptions requestOptions)Fetch the status of a message you've previously sent.RenderOutputResponsegetContent(java.lang.String messageId)RenderOutputResponsegetContent(java.lang.String messageId, RequestOptions requestOptions)MessageHistoryResponsegetHistory(java.lang.String messageId)Fetch the array of events of a message you've previously sent.MessageHistoryResponsegetHistory(java.lang.String messageId, GetMessageHistoryRequest request)Fetch the array of events of a message you've previously sent.MessageHistoryResponsegetHistory(java.lang.String messageId, GetMessageHistoryRequest request, RequestOptions requestOptions)Fetch the array of events of a message you've previously sent.ListMessagesResponselist()Fetch the statuses of messages you've previously sent.ListMessagesResponselist(ListMessagesRequest request)Fetch the statuses of messages you've previously sent.ListMessagesResponselist(ListMessagesRequest request, RequestOptions requestOptions)Fetch the statuses of messages you've previously sent.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
MessagesClient
public MessagesClient(ClientOptions clientOptions)
-
-
Method Detail
-
list
public ListMessagesResponse list()
Fetch the statuses of messages you've previously sent.
-
list
public ListMessagesResponse list(ListMessagesRequest request)
Fetch the statuses of messages you've previously sent.
-
list
public ListMessagesResponse list(ListMessagesRequest request, RequestOptions requestOptions)
Fetch the statuses of messages you've previously sent.
-
get
public MessageDetailsExtended get(java.lang.String messageId)
Fetch the status of a message you've previously sent.
-
get
public MessageDetailsExtended 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 either200status code for a successful cancellation or409status 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 either200status code for a successful cancellation or409status 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.
-
getHistory
public MessageHistoryResponse getHistory(java.lang.String messageId, GetMessageHistoryRequest request)
Fetch the array of events of a message you've previously sent.
-
getHistory
public MessageHistoryResponse getHistory(java.lang.String messageId, GetMessageHistoryRequest request, RequestOptions requestOptions)
Fetch the array of events of a message you've previously sent.
-
getContent
public RenderOutputResponse getContent(java.lang.String messageId)
-
getContent
public RenderOutputResponse getContent(java.lang.String messageId, RequestOptions requestOptions)
-
archive
public void archive(java.lang.String requestId)
-
archive
public void archive(java.lang.String requestId, RequestOptions requestOptions)
-
-