Class EventsApi

java.lang.Object
io.voucherify.client.api.EventsApi

public class EventsApi extends Object
  • Constructor Details

    • EventsApi

      public EventsApi()
    • EventsApi

      public EventsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • 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