Package software.xdev.brevo.api
Class InboundParsingApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.InboundParsingApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInboundEmailAttachment(String downloadToken) Retrieve inbound attachment with download token.getInboundEmailAttachment(String downloadToken, Map<String, String> additionalHeaders) Retrieve inbound attachment with download token.getInboundEmailEvents(String sender, String startDate, String endDate, Long limit, Long offset, String sort) Get the list of all the events for the received emails.getInboundEmailEvents(String sender, String startDate, String endDate, Long limit, Long offset, String sort, Map<String, String> additionalHeaders) Get the list of all the events for the received emails.Fetch all events history for one particular received email.getInboundEmailEventsByUuid(String uuid, Map<String, String> additionalHeaders) Fetch all events history for one particular received email.<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.Methods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
InboundParsingApi
public InboundParsingApi() -
InboundParsingApi
-
-
Method Details
-
getInboundEmailAttachment
Retrieve inbound attachment with download token. This endpoint will retrieve inbound attachment with download token.- Parameters:
downloadToken- Token to fetch a particular attachment (required)- Returns:
- File
- Throws:
ApiException- if fails to make API call
-
getInboundEmailAttachment
public File getInboundEmailAttachment(@Nonnull String downloadToken, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve inbound attachment with download token. This endpoint will retrieve inbound attachment with download token.- Parameters:
downloadToken- Token to fetch a particular attachment (required)additionalHeaders- additionalHeaders for this call- Returns:
- File
- Throws:
ApiException- if fails to make API call
-
getInboundEmailEvents
public GetInboundEmailEvents getInboundEmailEvents(@Nullable String sender, @Nullable String startDate, @Nullable String endDate, @Nullable Long limit, @Nullable Long offset, @Nullable String sort) throws ApiException Get the list of all the events for the received emails. This endpoint will show the list of all the events for the received emails.- Parameters:
sender- Email address of the sender. (optional)startDate- Mandatory if endDate is used. Starting date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)endDate- Mandatory if startDate is used. Ending date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)limit- Number of documents returned per page (optional, default to 100)offset- Index of the first document on the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation (optional, default to desc)- Returns:
- GetInboundEmailEvents
- Throws:
ApiException- if fails to make API call
-
getInboundEmailEvents
public GetInboundEmailEvents getInboundEmailEvents(@Nullable String sender, @Nullable String startDate, @Nullable String endDate, @Nullable Long limit, @Nullable Long offset, @Nullable String sort, Map<String, String> additionalHeaders) throws ApiExceptionGet the list of all the events for the received emails. This endpoint will show the list of all the events for the received emails.- Parameters:
sender- Email address of the sender. (optional)startDate- Mandatory if endDate is used. Starting date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)endDate- Mandatory if startDate is used. Ending date (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)limit- Number of documents returned per page (optional, default to 100)offset- Index of the first document on the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation (optional, default to desc)additionalHeaders- additionalHeaders for this call- Returns:
- GetInboundEmailEvents
- Throws:
ApiException- if fails to make API call
-
getInboundEmailEventsByUuid
public GetInboundEmailEventsByUuid getInboundEmailEventsByUuid(@Nonnull String uuid) throws ApiException Fetch all events history for one particular received email. This endpoint will show the list of all events history for one particular received email.- Parameters:
uuid- UUID to fetch events specific to recieved email (required)- Returns:
- GetInboundEmailEventsByUuid
- Throws:
ApiException- if fails to make API call
-
getInboundEmailEventsByUuid
public GetInboundEmailEventsByUuid getInboundEmailEventsByUuid(@Nonnull String uuid, Map<String, String> additionalHeaders) throws ApiExceptionFetch all events history for one particular received email. This endpoint will show the list of all events history for one particular received email.- Parameters:
uuid- UUID to fetch events specific to recieved email (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetInboundEmailEventsByUuid
- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-