Package software.xdev.brevo.api
Class ConversationsApi
java.lang.Object
software.xdev.brevo.api.ConversationsApi
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ConversationsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconversationsAgentOnlinePingPost(ConversationsAgentOnlinePingPostRequest conversationsAgentOnlinePingPostRequest) Sets agent’s status to online for 2-3 minutes We recommend pinging this endpoint every minute for as long as the agent has to be considered online.voidconversationsAgentOnlinePingPost(ConversationsAgentOnlinePingPostRequest conversationsAgentOnlinePingPostRequest, Map<String, String> additionalHeaders) Sets agent’s status to online for 2-3 minutes We recommend pinging this endpoint every minute for as long as the agent has to be considered online.voidDelete a message sent by an agent Only agents’ messages can be deleted.voidconversationsMessagesIdDelete(String id, Map<String, String> additionalHeaders) Delete a message sent by an agent Only agents’ messages can be deleted.Get a messageconversationsMessagesIdGet(String id, Map<String, String> additionalHeaders) Get a messageconversationsMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest) Update a message sent by an agent Only agents’ messages can be edited.conversationsMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest, Map<String, String> additionalHeaders) Update a message sent by an agent Only agents’ messages can be edited.conversationsMessagesPost(ConversationsMessagesPostRequest conversationsMessagesPostRequest) Send a message as an agentconversationsMessagesPost(ConversationsMessagesPostRequest conversationsMessagesPostRequest, Map<String, String> additionalHeaders) Send a message as an agentvoidDelete an automated messagevoidconversationsPushedMessagesIdDelete(String id, Map<String, String> additionalHeaders) Delete an automated messageGet an automated messageconversationsPushedMessagesIdGet(String id, Map<String, String> additionalHeaders) Get an automated messageconversationsPushedMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest) Update an automated messageconversationsPushedMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest, Map<String, String> additionalHeaders) Update an automated messageconversationsPushedMessagesPost(ConversationsPushedMessagesPostRequest conversationsPushedMessagesPostRequest) Send an automated message to a visitor Example of automated messages: order status, announce new features in your web app, etc.conversationsPushedMessagesPost(ConversationsPushedMessagesPostRequest conversationsPushedMessagesPostRequest, Map<String, String> additionalHeaders) Send an automated message to a visitor Example of automated messages: order status, announce new features in your web app, etc.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
ConversationsApi
public ConversationsApi() -
ConversationsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
conversationsAgentOnlinePingPost
public void conversationsAgentOnlinePingPost(ConversationsAgentOnlinePingPostRequest conversationsAgentOnlinePingPostRequest) throws ApiException Sets agent’s status to online for 2-3 minutes We recommend pinging this endpoint every minute for as long as the agent has to be considered online.- Parameters:
conversationsAgentOnlinePingPostRequest- (required)- Throws:
ApiException- if fails to make API call
-
conversationsAgentOnlinePingPost
public void conversationsAgentOnlinePingPost(ConversationsAgentOnlinePingPostRequest conversationsAgentOnlinePingPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionSets agent’s status to online for 2-3 minutes We recommend pinging this endpoint every minute for as long as the agent has to be considered online.- Parameters:
conversationsAgentOnlinePingPostRequest- (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
conversationsMessagesIdDelete
Delete a message sent by an agent Only agents’ messages can be deleted.- Parameters:
id- ID of the message (required)- Throws:
ApiException- if fails to make API call
-
conversationsMessagesIdDelete
public void conversationsMessagesIdDelete(String id, Map<String, String> additionalHeaders) throws ApiExceptionDelete a message sent by an agent Only agents’ messages can be deleted.- Parameters:
id- ID of the message (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
conversationsMessagesIdGet
Get a message- Parameters:
id- ID of the message (required)- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsMessagesIdGet
public ConversationsMessage conversationsMessagesIdGet(String id, Map<String, String> additionalHeaders) throws ApiExceptionGet a message- Parameters:
id- ID of the message (required)additionalHeaders- additionalHeaders for this call- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsMessagesIdPut
public ConversationsMessage conversationsMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest) throws ApiException Update a message sent by an agent Only agents’ messages can be edited.- Parameters:
id- ID of the message (required)conversationsMessagesIdPutRequest- (required)- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsMessagesIdPut
public ConversationsMessage conversationsMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate a message sent by an agent Only agents’ messages can be edited.- Parameters:
id- ID of the message (required)conversationsMessagesIdPutRequest- (required)additionalHeaders- additionalHeaders for this call- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsMessagesPost
public ConversationsMessage conversationsMessagesPost(ConversationsMessagesPostRequest conversationsMessagesPostRequest) throws ApiException Send a message as an agent- Parameters:
conversationsMessagesPostRequest- (required)- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsMessagesPost
public ConversationsMessage conversationsMessagesPost(ConversationsMessagesPostRequest conversationsMessagesPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionSend a message as an agent- Parameters:
conversationsMessagesPostRequest- (required)additionalHeaders- additionalHeaders for this call- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesIdDelete
Delete an automated message- Parameters:
id- ID of the message (required)- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesIdDelete
public void conversationsPushedMessagesIdDelete(String id, Map<String, String> additionalHeaders) throws ApiExceptionDelete an automated message- Parameters:
id- ID of the message (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesIdGet
Get an automated message- Parameters:
id- ID of the message sent previously (required)- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesIdGet
public ConversationsMessage conversationsPushedMessagesIdGet(String id, Map<String, String> additionalHeaders) throws ApiExceptionGet an automated message- Parameters:
id- ID of the message sent previously (required)additionalHeaders- additionalHeaders for this call- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesIdPut
public ConversationsMessage conversationsPushedMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest) throws ApiException Update an automated message- Parameters:
id- ID of the message (required)conversationsMessagesIdPutRequest- (required)- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesIdPut
public ConversationsMessage conversationsPushedMessagesIdPut(String id, ConversationsMessagesIdPutRequest conversationsMessagesIdPutRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an automated message- Parameters:
id- ID of the message (required)conversationsMessagesIdPutRequest- (required)additionalHeaders- additionalHeaders for this call- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesPost
public ConversationsMessage conversationsPushedMessagesPost(ConversationsPushedMessagesPostRequest conversationsPushedMessagesPostRequest) throws ApiException Send an automated message to a visitor Example of automated messages: order status, announce new features in your web app, etc.- Parameters:
conversationsPushedMessagesPostRequest- (required)- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-
conversationsPushedMessagesPost
public ConversationsMessage conversationsPushedMessagesPost(ConversationsPushedMessagesPostRequest conversationsPushedMessagesPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionSend an automated message to a visitor Example of automated messages: order status, announce new features in your web app, etc.- Parameters:
conversationsPushedMessagesPostRequest- (required)additionalHeaders- additionalHeaders for this call- Returns:
- ConversationsMessage
- Throws:
ApiException- if fails to make API call
-