Class AsyncRawMessagesClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.messages.AsyncRawMessagesClient
-
public class AsyncRawMessagesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawMessagesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<IntercomHttpResponse<Message>>createMessage()You can create a message that has been initiated by an admin.java.util.concurrent.CompletableFuture<IntercomHttpResponse<Message>>createMessage(java.util.Optional<java.lang.Object> request)You can create a message that has been initiated by an admin.java.util.concurrent.CompletableFuture<IntercomHttpResponse<Message>>createMessage(java.util.Optional<java.lang.Object> request, RequestOptions requestOptions)You can create a message that has been initiated by an admin.java.util.concurrent.CompletableFuture<IntercomHttpResponse<WhatsappMessageStatusList>>getWhatsAppMessageStatus(GetWhatsAppMessageStatusRequest request)Retrieves statuses of messages sent from the Outbound module.java.util.concurrent.CompletableFuture<IntercomHttpResponse<WhatsappMessageStatusList>>getWhatsAppMessageStatus(GetWhatsAppMessageStatusRequest request, RequestOptions requestOptions)Retrieves statuses of messages sent from the Outbound module.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawMessagesClient
public AsyncRawMessagesClient(ClientOptions clientOptions)
-
-
Method Detail
-
createMessage
public java.util.concurrent.CompletableFuture<IntercomHttpResponse<Message>> createMessage()
You can create a message that has been initiated by an admin. The conversation can be either an in-app message, an email, sms or whatsapp.🚧 Sending for visitors
There can be a short delay between when a contact is created and when a contact becomes available to be messaged through the API. A 404 Not Found error will be returned in this case.
This will return the Message model that has been created.
🚧 Retrieving Associated Conversations
As this is a message, there will be no conversation present until the contact responds. Once they do, you will have to search for a contact's conversations with the id of the message.
-
createMessage
public java.util.concurrent.CompletableFuture<IntercomHttpResponse<Message>> createMessage(java.util.Optional<java.lang.Object> request)
You can create a message that has been initiated by an admin. The conversation can be either an in-app message, an email, sms or whatsapp.🚧 Sending for visitors
There can be a short delay between when a contact is created and when a contact becomes available to be messaged through the API. A 404 Not Found error will be returned in this case.
This will return the Message model that has been created.
🚧 Retrieving Associated Conversations
As this is a message, there will be no conversation present until the contact responds. Once they do, you will have to search for a contact's conversations with the id of the message.
-
createMessage
public java.util.concurrent.CompletableFuture<IntercomHttpResponse<Message>> createMessage(java.util.Optional<java.lang.Object> request, RequestOptions requestOptions)
You can create a message that has been initiated by an admin. The conversation can be either an in-app message, an email, sms or whatsapp.🚧 Sending for visitors
There can be a short delay between when a contact is created and when a contact becomes available to be messaged through the API. A 404 Not Found error will be returned in this case.
This will return the Message model that has been created.
🚧 Retrieving Associated Conversations
As this is a message, there will be no conversation present until the contact responds. Once they do, you will have to search for a contact's conversations with the id of the message.
-
getWhatsAppMessageStatus
public java.util.concurrent.CompletableFuture<IntercomHttpResponse<WhatsappMessageStatusList>> getWhatsAppMessageStatus(GetWhatsAppMessageStatusRequest request)
Retrieves statuses of messages sent from the Outbound module. Currently, this API only supports WhatsApp messages.This endpoint returns paginated status events for WhatsApp messages sent via the Outbound module, providing information about delivery state and related message details.
-
getWhatsAppMessageStatus
public java.util.concurrent.CompletableFuture<IntercomHttpResponse<WhatsappMessageStatusList>> getWhatsAppMessageStatus(GetWhatsAppMessageStatusRequest request, RequestOptions requestOptions)
Retrieves statuses of messages sent from the Outbound module. Currently, this API only supports WhatsApp messages.This endpoint returns paginated status events for WhatsApp messages sent via the Outbound module, providing information about delivery state and related message details.
-
-