Package io.voucherify.client.api
Class EventsApi
java.lang.Object
io.voucherify.client.api.EventsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) trackCustomEvent(EventsCreateRequestBody eventsCreateRequestBody) Track Custom Event To track a custom event, you create an event object.okhttp3.CalltrackCustomEventAsync(EventsCreateRequestBody eventsCreateRequestBody, ApiCallback<EventsCreateResponseBody> _callback) Track Custom Event (asynchronously) To track a custom event, you create an event object.okhttp3.CalltrackCustomEventCall(EventsCreateRequestBody eventsCreateRequestBody, ApiCallback _callback) Build call for trackCustomEventtrackCustomEventWithHttpInfo(EventsCreateRequestBody eventsCreateRequestBody) Track Custom Event To track a custom event, you create an event object.
-
Constructor Details
-
EventsApi
public EventsApi() -
EventsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
trackCustomEventCall
public okhttp3.Call trackCustomEventCall(EventsCreateRequestBody eventsCreateRequestBody, ApiCallback _callback) throws ApiException Build call for trackCustomEvent- Parameters:
eventsCreateRequestBody- Specify the details of the custom event. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
trackCustomEvent
public EventsCreateResponseBody trackCustomEvent(EventsCreateRequestBody eventsCreateRequestBody) throws ApiException Track Custom Event To track a custom event, you create an event object. The event object must be linked to the customer who performs the action. If a customer doesnt exist in Voucherify, the customer will be created.- Parameters:
eventsCreateRequestBody- Specify the details of the custom event. (optional)- Returns:
- EventsCreateResponseBody
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
trackCustomEventWithHttpInfo
public ApiResponse<EventsCreateResponseBody> trackCustomEventWithHttpInfo(EventsCreateRequestBody eventsCreateRequestBody) throws ApiException Track Custom Event To track a custom event, you create an event object. The event object must be linked to the customer who performs the action. If a customer doesnt exist in Voucherify, the customer will be created.- Parameters:
eventsCreateRequestBody- Specify the details of the custom event. (optional)- Returns:
- ApiResponse<EventsCreateResponseBody>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
trackCustomEventAsync
public okhttp3.Call trackCustomEventAsync(EventsCreateRequestBody eventsCreateRequestBody, ApiCallback<EventsCreateResponseBody> _callback) throws ApiException Track Custom Event (asynchronously) To track a custom event, you create an event object. The event object must be linked to the customer who performs the action. If a customer doesnt exist in Voucherify, the customer will be created.- Parameters:
eventsCreateRequestBody- Specify the details of the custom event. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-