Package software.xdev.brevo.api
Class EventApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.EventApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEvent(Event event) Create an event Create an event to track a contact's interaction.voidcreateEvent(Event event, Map<String, String> additionalHeaders) Create an event Create an event to track a contact's interaction.<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
-
EventApi
public EventApi() -
EventApi
-
-
Method Details
-
createEvent
Create an event Create an event to track a contact's interaction.- Parameters:
event- (required)- Throws:
ApiException- if fails to make API call
-
createEvent
public void createEvent(@Nonnull Event event, Map<String, String> additionalHeaders) throws ApiExceptionCreate an event Create an event to track a contact's interaction.- Parameters:
event- (required)additionalHeaders- additionalHeaders for this call- 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.
-