All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mailslurp.apis.WebhookControllerApi Maven / Gradle / Ivy

Go to download

Official MailSlurp email API - create real inboxes then send and receive emails and attachments from tests and code.

The newest version!
/*
 * MailSlurp API
 * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more.  ## Resources  - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
 *
 * The version of the OpenAPI document: 6.5.2
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.mailslurp.apis;

import com.mailslurp.clients.ApiCallback;
import com.mailslurp.clients.ApiClient;
import com.mailslurp.clients.ApiException;
import com.mailslurp.clients.ApiResponse;
import com.mailslurp.clients.Configuration;
import com.mailslurp.clients.Pair;
import com.mailslurp.clients.ProgressRequestBody;
import com.mailslurp.clients.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.mailslurp.models.AbstractWebhookPayload;
import com.mailslurp.models.CountDto;
import com.mailslurp.models.CreateWebhookOptions;
import com.mailslurp.models.JSONSchemaDto;
import java.time.OffsetDateTime;
import com.mailslurp.models.PageWebhookProjection;
import com.mailslurp.models.PageWebhookResult;
import java.util.UUID;
import com.mailslurp.models.UnseenErrorCountDto;
import com.mailslurp.models.VerifyWebhookSignatureOptions;
import com.mailslurp.models.VerifyWebhookSignatureResults;
import com.mailslurp.models.WebhookBouncePayload;
import com.mailslurp.models.WebhookBounceRecipientPayload;
import com.mailslurp.models.WebhookDeliveryStatusPayload;
import com.mailslurp.models.WebhookDto;
import com.mailslurp.models.WebhookEmailOpenedPayload;
import com.mailslurp.models.WebhookEmailReadPayload;
import com.mailslurp.models.WebhookHeaders;
import com.mailslurp.models.WebhookNewAttachmentPayload;
import com.mailslurp.models.WebhookNewContactPayload;
import com.mailslurp.models.WebhookNewEmailPayload;
import com.mailslurp.models.WebhookNewSmsPayload;
import com.mailslurp.models.WebhookRedriveAllResult;
import com.mailslurp.models.WebhookRedriveResult;
import com.mailslurp.models.WebhookResultDto;
import com.mailslurp.models.WebhookTestResult;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class WebhookControllerApi {
    private ApiClient localVarApiClient;

    public WebhookControllerApi() {
        this(Configuration.getDefaultApiClient());
    }

    public WebhookControllerApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for createAccountWebhook
     * @param createWebhookOptions  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call createAccountWebhookCall(CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createWebhookOptions; // create path and map variables String localVarPath = "/webhooks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createAccountWebhookValidateBeforeCall(CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { // verify the required parameter 'createWebhookOptions' is set if (createWebhookOptions == null) { throw new ApiException("Missing the required parameter 'createWebhookOptions' when calling createAccountWebhook(Async)"); } okhttp3.Call localVarCall = createAccountWebhookCall(createWebhookOptions, _callback); return localVarCall; } /** * Attach a WebHook URL to an inbox * Get notified of account level events such as bounce and bounce recipient. * @param createWebhookOptions (required) * @return WebhookDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public WebhookDto createAccountWebhook(CreateWebhookOptions createWebhookOptions) throws ApiException { ApiResponse localVarResp = createAccountWebhookWithHttpInfo(createWebhookOptions); return localVarResp.getData(); } /** * Attach a WebHook URL to an inbox * Get notified of account level events such as bounce and bounce recipient. * @param createWebhookOptions (required) * @return ApiResponse<WebhookDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public ApiResponse createAccountWebhookWithHttpInfo(CreateWebhookOptions createWebhookOptions) throws ApiException { okhttp3.Call localVarCall = createAccountWebhookValidateBeforeCall(createWebhookOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Attach a WebHook URL to an inbox (asynchronously) * Get notified of account level events such as bounce and bounce recipient. * @param createWebhookOptions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call createAccountWebhookAsync(CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAccountWebhookValidateBeforeCall(createWebhookOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createWebhook * @param inboxId (required) * @param createWebhookOptions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call createWebhookCall(UUID inboxId, CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createWebhookOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/webhooks" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createWebhookValidateBeforeCall(UUID inboxId, CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { // verify the required parameter 'inboxId' is set if (inboxId == null) { throw new ApiException("Missing the required parameter 'inboxId' when calling createWebhook(Async)"); } // verify the required parameter 'createWebhookOptions' is set if (createWebhookOptions == null) { throw new ApiException("Missing the required parameter 'createWebhookOptions' when calling createWebhook(Async)"); } okhttp3.Call localVarCall = createWebhookCall(inboxId, createWebhookOptions, _callback); return localVarCall; } /** * Attach a WebHook URL to an inbox * Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. * @param inboxId (required) * @param createWebhookOptions (required) * @return WebhookDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public WebhookDto createWebhook(UUID inboxId, CreateWebhookOptions createWebhookOptions) throws ApiException { ApiResponse localVarResp = createWebhookWithHttpInfo(inboxId, createWebhookOptions); return localVarResp.getData(); } /** * Attach a WebHook URL to an inbox * Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. * @param inboxId (required) * @param createWebhookOptions (required) * @return ApiResponse<WebhookDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public ApiResponse createWebhookWithHttpInfo(UUID inboxId, CreateWebhookOptions createWebhookOptions) throws ApiException { okhttp3.Call localVarCall = createWebhookValidateBeforeCall(inboxId, createWebhookOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Attach a WebHook URL to an inbox (asynchronously) * Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint. * @param inboxId (required) * @param createWebhookOptions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call createWebhookAsync(UUID inboxId, CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createWebhookValidateBeforeCall(inboxId, createWebhookOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createWebhookForPhoneNumber * @param phoneNumberId (required) * @param createWebhookOptions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call createWebhookForPhoneNumberCall(UUID phoneNumberId, CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createWebhookOptions; // create path and map variables String localVarPath = "/phone/numbers/{phoneNumberId}/webhooks" .replaceAll("\\{" + "phoneNumberId" + "\\}", localVarApiClient.escapeString(phoneNumberId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createWebhookForPhoneNumberValidateBeforeCall(UUID phoneNumberId, CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { // verify the required parameter 'phoneNumberId' is set if (phoneNumberId == null) { throw new ApiException("Missing the required parameter 'phoneNumberId' when calling createWebhookForPhoneNumber(Async)"); } // verify the required parameter 'createWebhookOptions' is set if (createWebhookOptions == null) { throw new ApiException("Missing the required parameter 'createWebhookOptions' when calling createWebhookForPhoneNumber(Async)"); } okhttp3.Call localVarCall = createWebhookForPhoneNumberCall(phoneNumberId, createWebhookOptions, _callback); return localVarCall; } /** * Attach a WebHook URL to a phone number * Get notified whenever a phone number receives an SMS via a WebHook URL. * @param phoneNumberId (required) * @param createWebhookOptions (required) * @return WebhookDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public WebhookDto createWebhookForPhoneNumber(UUID phoneNumberId, CreateWebhookOptions createWebhookOptions) throws ApiException { ApiResponse localVarResp = createWebhookForPhoneNumberWithHttpInfo(phoneNumberId, createWebhookOptions); return localVarResp.getData(); } /** * Attach a WebHook URL to a phone number * Get notified whenever a phone number receives an SMS via a WebHook URL. * @param phoneNumberId (required) * @param createWebhookOptions (required) * @return ApiResponse<WebhookDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public ApiResponse createWebhookForPhoneNumberWithHttpInfo(UUID phoneNumberId, CreateWebhookOptions createWebhookOptions) throws ApiException { okhttp3.Call localVarCall = createWebhookForPhoneNumberValidateBeforeCall(phoneNumberId, createWebhookOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Attach a WebHook URL to a phone number (asynchronously) * Get notified whenever a phone number receives an SMS via a WebHook URL. * @param phoneNumberId (required) * @param createWebhookOptions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call createWebhookForPhoneNumberAsync(UUID phoneNumberId, CreateWebhookOptions createWebhookOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createWebhookForPhoneNumberValidateBeforeCall(phoneNumberId, createWebhookOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteAllWebhooks * @param before before (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public okhttp3.Call deleteAllWebhooksCall(OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteAllWebhooksValidateBeforeCall(OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllWebhooksCall(before, _callback); return localVarCall; } /** * Delete all webhooks * * @param before before (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public void deleteAllWebhooks(OffsetDateTime before) throws ApiException { deleteAllWebhooksWithHttpInfo(before); } /** * Delete all webhooks * * @param before before (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public ApiResponse deleteAllWebhooksWithHttpInfo(OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = deleteAllWebhooksValidateBeforeCall(before, null); return localVarApiClient.execute(localVarCall); } /** * Delete all webhooks (asynchronously) * * @param before before (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public okhttp3.Call deleteAllWebhooksAsync(OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllWebhooksValidateBeforeCall(before, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteWebhook * @param inboxId (required) * @param webhookId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public okhttp3.Call deleteWebhookCall(UUID inboxId, UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/webhooks/{webhookId}" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())) .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteWebhookValidateBeforeCall(UUID inboxId, UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'inboxId' is set if (inboxId == null) { throw new ApiException("Missing the required parameter 'inboxId' when calling deleteWebhook(Async)"); } // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhook(Async)"); } okhttp3.Call localVarCall = deleteWebhookCall(inboxId, webhookId, _callback); return localVarCall; } /** * Delete and disable a Webhook for an Inbox * * @param inboxId (required) * @param webhookId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public void deleteWebhook(UUID inboxId, UUID webhookId) throws ApiException { deleteWebhookWithHttpInfo(inboxId, webhookId); } /** * Delete and disable a Webhook for an Inbox * * @param inboxId (required) * @param webhookId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public ApiResponse deleteWebhookWithHttpInfo(UUID inboxId, UUID webhookId) throws ApiException { okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(inboxId, webhookId, null); return localVarApiClient.execute(localVarCall); } /** * Delete and disable a Webhook for an Inbox (asynchronously) * * @param inboxId (required) * @param webhookId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 No Content -
*/ public okhttp3.Call deleteWebhookAsync(UUID inboxId, UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(inboxId, webhookId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteWebhookById * @param webhookId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteWebhookByIdCall(UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteWebhookByIdValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhookById(Async)"); } okhttp3.Call localVarCall = deleteWebhookByIdCall(webhookId, _callback); return localVarCall; } /** * Delete a webhook * * @param webhookId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public void deleteWebhookById(UUID webhookId) throws ApiException { deleteWebhookByIdWithHttpInfo(webhookId); } /** * Delete a webhook * * @param webhookId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse deleteWebhookByIdWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = deleteWebhookByIdValidateBeforeCall(webhookId, null); return localVarApiClient.execute(localVarCall); } /** * Delete a webhook (asynchronously) * * @param webhookId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call deleteWebhookByIdAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteWebhookByIdValidateBeforeCall(webhookId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getAllAccountWebhooks * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param eventType Optional event type (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getAllAccountWebhooksCall(Integer page, Integer size, String sort, String eventType, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/account/paginated"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (eventType != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("eventType", eventType)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllAccountWebhooksValidateBeforeCall(Integer page, Integer size, String sort, String eventType, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllAccountWebhooksCall(page, size, sort, eventType, since, before, _callback); return localVarCall; } /** * List account webhooks Paginated * List account webhooks in paginated form. Allows for page index, page size, and sort direction. * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param eventType Optional event type (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @return PageWebhookProjection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public PageWebhookProjection getAllAccountWebhooks(Integer page, Integer size, String sort, String eventType, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getAllAccountWebhooksWithHttpInfo(page, size, sort, eventType, since, before); return localVarResp.getData(); } /** * List account webhooks Paginated * List account webhooks in paginated form. Allows for page index, page size, and sort direction. * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param eventType Optional event type (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @return ApiResponse<PageWebhookProjection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getAllAccountWebhooksWithHttpInfo(Integer page, Integer size, String sort, String eventType, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getAllAccountWebhooksValidateBeforeCall(page, size, sort, eventType, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List account webhooks Paginated (asynchronously) * List account webhooks in paginated form. Allows for page index, page size, and sort direction. * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param eventType Optional event type (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getAllAccountWebhooksAsync(Integer page, Integer size, String sort, String eventType, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllAccountWebhooksValidateBeforeCall(page, size, sort, eventType, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllWebhookResults * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getAllWebhookResultsCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/results"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (searchFilter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilter", searchFilter)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (unseenOnly != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("unseenOnly", unseenOnly)); } if (resultType != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resultType", resultType)); } if (eventName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("eventName", eventName)); } if (minStatusCode != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("minStatusCode", minStatusCode)); } if (maxStatusCode != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxStatusCode", maxStatusCode)); } if (inboxId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId)); } if (smsId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("smsId", smsId)); } if (attachmentId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("attachmentId", attachmentId)); } if (emailId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailId", emailId)); } if (phoneId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("phoneId", phoneId)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllWebhookResultsValidateBeforeCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllWebhookResultsCall(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, _callback); return localVarCall; } /** * Get results for all webhooks * * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @return PageWebhookResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public PageWebhookResult getAllWebhookResults(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId) throws ApiException { ApiResponse localVarResp = getAllWebhookResultsWithHttpInfo(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); return localVarResp.getData(); } /** * Get results for all webhooks * * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @return ApiResponse<PageWebhookResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getAllWebhookResultsWithHttpInfo(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId) throws ApiException { okhttp3.Call localVarCall = getAllWebhookResultsValidateBeforeCall(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get results for all webhooks (asynchronously) * * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getAllWebhookResultsAsync(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllWebhookResultsValidateBeforeCall(page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllWebhooks * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param inboxId Filter by inboxId (optional) * @param phoneId Filter by phoneId (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getAllWebhooksCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, UUID inboxId, UUID phoneId, OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/paginated"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (searchFilter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilter", searchFilter)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (inboxId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId)); } if (phoneId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("phoneId", phoneId)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllWebhooksValidateBeforeCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, UUID inboxId, UUID phoneId, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllWebhooksCall(page, size, sort, searchFilter, since, inboxId, phoneId, before, _callback); return localVarCall; } /** * List Webhooks Paginated * List webhooks in paginated form. Allows for page index, page size, and sort direction. * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param inboxId Filter by inboxId (optional) * @param phoneId Filter by phoneId (optional) * @param before Filter by created at before the given timestamp (optional) * @return PageWebhookProjection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public PageWebhookProjection getAllWebhooks(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, UUID inboxId, UUID phoneId, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getAllWebhooksWithHttpInfo(page, size, sort, searchFilter, since, inboxId, phoneId, before); return localVarResp.getData(); } /** * List Webhooks Paginated * List webhooks in paginated form. Allows for page index, page size, and sort direction. * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param inboxId Filter by inboxId (optional) * @param phoneId Filter by phoneId (optional) * @param before Filter by created at before the given timestamp (optional) * @return ApiResponse<PageWebhookProjection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getAllWebhooksWithHttpInfo(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, UUID inboxId, UUID phoneId, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getAllWebhooksValidateBeforeCall(page, size, sort, searchFilter, since, inboxId, phoneId, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Webhooks Paginated (asynchronously) * List webhooks in paginated form. Allows for page index, page size, and sort direction. * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size for paginated result list. (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to DESC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param inboxId Filter by inboxId (optional) * @param phoneId Filter by phoneId (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getAllWebhooksAsync(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, UUID inboxId, UUID phoneId, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllWebhooksValidateBeforeCall(page, size, sort, searchFilter, since, inboxId, phoneId, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxWebhooksPaginated * @param inboxId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getInboxWebhooksPaginatedCall(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/webhooks/paginated" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (searchFilter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilter", searchFilter)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getInboxWebhooksPaginatedValidateBeforeCall(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { // verify the required parameter 'inboxId' is set if (inboxId == null) { throw new ApiException("Missing the required parameter 'inboxId' when calling getInboxWebhooksPaginated(Async)"); } okhttp3.Call localVarCall = getInboxWebhooksPaginatedCall(inboxId, page, size, sort, searchFilter, since, before, _callback); return localVarCall; } /** * Get paginated webhooks for an Inbox * * @param inboxId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @return PageWebhookProjection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public PageWebhookProjection getInboxWebhooksPaginated(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getInboxWebhooksPaginatedWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); return localVarResp.getData(); } /** * Get paginated webhooks for an Inbox * * @param inboxId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @return ApiResponse<PageWebhookProjection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getInboxWebhooksPaginatedWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getInboxWebhooksPaginatedValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get paginated webhooks for an Inbox (asynchronously) * * @param inboxId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getInboxWebhooksPaginatedAsync(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxWebhooksPaginatedValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getJsonSchemaForWebhookEvent * @param event (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getJsonSchemaForWebhookEventCall(String event, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/schema"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (event != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("event", event)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getJsonSchemaForWebhookEventValidateBeforeCall(String event, final ApiCallback _callback) throws ApiException { // verify the required parameter 'event' is set if (event == null) { throw new ApiException("Missing the required parameter 'event' when calling getJsonSchemaForWebhookEvent(Async)"); } okhttp3.Call localVarCall = getJsonSchemaForWebhookEventCall(event, _callback); return localVarCall; } /** * * Get JSON Schema definition for webhook payload by event * @param event (required) * @return JSONSchemaDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public JSONSchemaDto getJsonSchemaForWebhookEvent(String event) throws ApiException { ApiResponse localVarResp = getJsonSchemaForWebhookEventWithHttpInfo(event); return localVarResp.getData(); } /** * * Get JSON Schema definition for webhook payload by event * @param event (required) * @return ApiResponse<JSONSchemaDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getJsonSchemaForWebhookEventWithHttpInfo(String event) throws ApiException { okhttp3.Call localVarCall = getJsonSchemaForWebhookEventValidateBeforeCall(event, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get JSON Schema definition for webhook payload by event * @param event (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getJsonSchemaForWebhookEventAsync(String event, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getJsonSchemaForWebhookEventValidateBeforeCall(event, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getJsonSchemaForWebhookPayload * @param webhookId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getJsonSchemaForWebhookPayloadCall(UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}/schema" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getJsonSchemaForWebhookPayloadValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling getJsonSchemaForWebhookPayload(Async)"); } okhttp3.Call localVarCall = getJsonSchemaForWebhookPayloadCall(webhookId, _callback); return localVarCall; } /** * * Get JSON Schema definition for webhook payload * @param webhookId (required) * @return JSONSchemaDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public JSONSchemaDto getJsonSchemaForWebhookPayload(UUID webhookId) throws ApiException { ApiResponse localVarResp = getJsonSchemaForWebhookPayloadWithHttpInfo(webhookId); return localVarResp.getData(); } /** * * Get JSON Schema definition for webhook payload * @param webhookId (required) * @return ApiResponse<JSONSchemaDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getJsonSchemaForWebhookPayloadWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = getJsonSchemaForWebhookPayloadValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get JSON Schema definition for webhook payload * @param webhookId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getJsonSchemaForWebhookPayloadAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getJsonSchemaForWebhookPayloadValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getPhoneNumberWebhooksPaginated * @param phoneId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getPhoneNumberWebhooksPaginatedCall(UUID phoneId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/phone/numbers/{phoneId}/webhooks/paginated" .replaceAll("\\{" + "phoneId" + "\\}", localVarApiClient.escapeString(phoneId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getPhoneNumberWebhooksPaginatedValidateBeforeCall(UUID phoneId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { // verify the required parameter 'phoneId' is set if (phoneId == null) { throw new ApiException("Missing the required parameter 'phoneId' when calling getPhoneNumberWebhooksPaginated(Async)"); } okhttp3.Call localVarCall = getPhoneNumberWebhooksPaginatedCall(phoneId, page, size, sort, since, before, _callback); return localVarCall; } /** * Get paginated webhooks for a phone number * * @param phoneId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @return PageWebhookProjection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public PageWebhookProjection getPhoneNumberWebhooksPaginated(UUID phoneId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getPhoneNumberWebhooksPaginatedWithHttpInfo(phoneId, page, size, sort, since, before); return localVarResp.getData(); } /** * Get paginated webhooks for a phone number * * @param phoneId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @return ApiResponse<PageWebhookProjection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getPhoneNumberWebhooksPaginatedWithHttpInfo(UUID phoneId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getPhoneNumberWebhooksPaginatedValidateBeforeCall(phoneId, page, size, sort, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get paginated webhooks for a phone number (asynchronously) * * @param phoneId (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getPhoneNumberWebhooksPaginatedAsync(UUID phoneId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPhoneNumberWebhooksPaginatedValidateBeforeCall(phoneId, page, size, sort, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayload * @param eventName (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadCall(String eventName, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (eventName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("eventName", eventName)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadValidateBeforeCall(String eventName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadCall(eventName, _callback); return localVarCall; } /** * * Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. * @param eventName (optional) * @return AbstractWebhookPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public AbstractWebhookPayload getTestWebhookPayload(String eventName) throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadWithHttpInfo(eventName); return localVarResp.getData(); } /** * * Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. * @param eventName (optional) * @return ApiResponse<AbstractWebhookPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadWithHttpInfo(String eventName) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadValidateBeforeCall(eventName, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default. * @param eventName (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadAsync(String eventName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadValidateBeforeCall(eventName, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadBounce * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadBounceCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/email-bounce-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadBounceValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadBounceCall(_callback); return localVarCall; } /** * * Get webhook test payload for bounce * @return WebhookBouncePayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookBouncePayload getTestWebhookPayloadBounce() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadBounceWithHttpInfo(); return localVarResp.getData(); } /** * * Get webhook test payload for bounce * @return ApiResponse<WebhookBouncePayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadBounceWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadBounceValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get webhook test payload for bounce * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadBounceAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadBounceValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadBounceRecipient * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadBounceRecipientCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/email-bounce-recipient-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadBounceRecipientValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadBounceRecipientCall(_callback); return localVarCall; } /** * * Get webhook test payload for bounce recipient * @return WebhookBounceRecipientPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookBounceRecipientPayload getTestWebhookPayloadBounceRecipient() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadBounceRecipientWithHttpInfo(); return localVarResp.getData(); } /** * * Get webhook test payload for bounce recipient * @return ApiResponse<WebhookBounceRecipientPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadBounceRecipientWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadBounceRecipientValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get webhook test payload for bounce recipient * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadBounceRecipientAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadBounceRecipientValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadDeliveryStatus * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadDeliveryStatusCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/delivery-status-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadDeliveryStatusValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadDeliveryStatusCall(_callback); return localVarCall; } /** * Get webhook test payload for delivery status event * * @return WebhookDeliveryStatusPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookDeliveryStatusPayload getTestWebhookPayloadDeliveryStatus() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadDeliveryStatusWithHttpInfo(); return localVarResp.getData(); } /** * Get webhook test payload for delivery status event * * @return ApiResponse<WebhookDeliveryStatusPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadDeliveryStatusWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadDeliveryStatusValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get webhook test payload for delivery status event (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadDeliveryStatusAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadDeliveryStatusValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadEmailOpened * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadEmailOpenedCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/email-opened-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadEmailOpenedValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadEmailOpenedCall(_callback); return localVarCall; } /** * * Get webhook test payload for email opened event * @return WebhookEmailOpenedPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookEmailOpenedPayload getTestWebhookPayloadEmailOpened() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadEmailOpenedWithHttpInfo(); return localVarResp.getData(); } /** * * Get webhook test payload for email opened event * @return ApiResponse<WebhookEmailOpenedPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadEmailOpenedWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadEmailOpenedValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get webhook test payload for email opened event * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadEmailOpenedAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadEmailOpenedValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadEmailRead * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadEmailReadCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/email-read-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadEmailReadValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadEmailReadCall(_callback); return localVarCall; } /** * * Get webhook test payload for email opened event * @return WebhookEmailReadPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookEmailReadPayload getTestWebhookPayloadEmailRead() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadEmailReadWithHttpInfo(); return localVarResp.getData(); } /** * * Get webhook test payload for email opened event * @return ApiResponse<WebhookEmailReadPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadEmailReadWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadEmailReadValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get webhook test payload for email opened event * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadEmailReadAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadEmailReadValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadForWebhook * @param webhookId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call getTestWebhookPayloadForWebhookCall(UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}/example" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadForWebhookValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling getTestWebhookPayloadForWebhook(Async)"); } okhttp3.Call localVarCall = getTestWebhookPayloadForWebhookCall(webhookId, _callback); return localVarCall; } /** * * Get example payload for webhook * @param webhookId (required) * @return AbstractWebhookPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public AbstractWebhookPayload getTestWebhookPayloadForWebhook(UUID webhookId) throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadForWebhookWithHttpInfo(webhookId); return localVarResp.getData(); } /** * * Get example payload for webhook * @param webhookId (required) * @return ApiResponse<AbstractWebhookPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public ApiResponse getTestWebhookPayloadForWebhookWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadForWebhookValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get example payload for webhook * @param webhookId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call getTestWebhookPayloadForWebhookAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadForWebhookValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadNewAttachment * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewAttachmentCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/new-attachment-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadNewAttachmentValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewAttachmentCall(_callback); return localVarCall; } /** * Get webhook test payload for new attachment event * * @return WebhookNewAttachmentPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookNewAttachmentPayload getTestWebhookPayloadNewAttachment() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadNewAttachmentWithHttpInfo(); return localVarResp.getData(); } /** * Get webhook test payload for new attachment event * * @return ApiResponse<WebhookNewAttachmentPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadNewAttachmentWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewAttachmentValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get webhook test payload for new attachment event (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewAttachmentAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewAttachmentValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadNewContact * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewContactCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/new-contact-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadNewContactValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewContactCall(_callback); return localVarCall; } /** * Get webhook test payload for new contact event * * @return WebhookNewContactPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookNewContactPayload getTestWebhookPayloadNewContact() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadNewContactWithHttpInfo(); return localVarResp.getData(); } /** * Get webhook test payload for new contact event * * @return ApiResponse<WebhookNewContactPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadNewContactWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewContactValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get webhook test payload for new contact event (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewContactAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewContactValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadNewEmail * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewEmailCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/new-email-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadNewEmailValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewEmailCall(_callback); return localVarCall; } /** * Get webhook test payload for new email event * * @return WebhookNewEmailPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookNewEmailPayload getTestWebhookPayloadNewEmail() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadNewEmailWithHttpInfo(); return localVarResp.getData(); } /** * Get webhook test payload for new email event * * @return ApiResponse<WebhookNewEmailPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadNewEmailWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewEmailValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get webhook test payload for new email event (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewEmailAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewEmailValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getTestWebhookPayloadNewSms * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewSmsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/test/new-sms-payload"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTestWebhookPayloadNewSmsValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewSmsCall(_callback); return localVarCall; } /** * Get webhook test payload for new sms event * * @return WebhookNewSmsPayload * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookNewSmsPayload getTestWebhookPayloadNewSms() throws ApiException { ApiResponse localVarResp = getTestWebhookPayloadNewSmsWithHttpInfo(); return localVarResp.getData(); } /** * Get webhook test payload for new sms event * * @return ApiResponse<WebhookNewSmsPayload> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getTestWebhookPayloadNewSmsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewSmsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get webhook test payload for new sms event (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getTestWebhookPayloadNewSmsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTestWebhookPayloadNewSmsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhook * @param webhookId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookCall(UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getWebhookValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhook(Async)"); } okhttp3.Call localVarCall = getWebhookCall(webhookId, _callback); return localVarCall; } /** * Get a webhook * * @param webhookId (required) * @return WebhookDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookDto getWebhook(UUID webhookId) throws ApiException { ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId); return localVarResp.getData(); } /** * Get a webhook * * @param webhookId (required) * @return ApiResponse<WebhookDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getWebhookWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a webhook (asynchronously) * * @param webhookId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhookResult * @param webhookResultId Webhook Result ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultCall(UUID webhookResultId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/results/{webhookResultId}" .replaceAll("\\{" + "webhookResultId" + "\\}", localVarApiClient.escapeString(webhookResultId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getWebhookResultValidateBeforeCall(UUID webhookResultId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookResultId' is set if (webhookResultId == null) { throw new ApiException("Missing the required parameter 'webhookResultId' when calling getWebhookResult(Async)"); } okhttp3.Call localVarCall = getWebhookResultCall(webhookResultId, _callback); return localVarCall; } /** * Get a webhook result for a webhook * * @param webhookResultId Webhook Result ID (required) * @return WebhookResultDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookResultDto getWebhookResult(UUID webhookResultId) throws ApiException { ApiResponse localVarResp = getWebhookResultWithHttpInfo(webhookResultId); return localVarResp.getData(); } /** * Get a webhook result for a webhook * * @param webhookResultId Webhook Result ID (required) * @return ApiResponse<WebhookResultDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getWebhookResultWithHttpInfo(UUID webhookResultId) throws ApiException { okhttp3.Call localVarCall = getWebhookResultValidateBeforeCall(webhookResultId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a webhook result for a webhook (asynchronously) * * @param webhookResultId Webhook Result ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultAsync(UUID webhookResultId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookResultValidateBeforeCall(webhookResultId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhookResults * @param webhookId ID of webhook to get results for (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultsCall(UUID webhookId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}/results" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (searchFilter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("searchFilter", searchFilter)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (unseenOnly != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("unseenOnly", unseenOnly)); } if (resultType != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resultType", resultType)); } if (eventName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("eventName", eventName)); } if (minStatusCode != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("minStatusCode", minStatusCode)); } if (maxStatusCode != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxStatusCode", maxStatusCode)); } if (inboxId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId)); } if (smsId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("smsId", smsId)); } if (attachmentId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("attachmentId", attachmentId)); } if (emailId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailId", emailId)); } if (phoneId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("phoneId", phoneId)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getWebhookResultsValidateBeforeCall(UUID webhookId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhookResults(Async)"); } okhttp3.Call localVarCall = getWebhookResultsCall(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, _callback); return localVarCall; } /** * Get a webhook results for a webhook * * @param webhookId ID of webhook to get results for (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @return PageWebhookResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public PageWebhookResult getWebhookResults(UUID webhookId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId) throws ApiException { ApiResponse localVarResp = getWebhookResultsWithHttpInfo(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId); return localVarResp.getData(); } /** * Get a webhook results for a webhook * * @param webhookId ID of webhook to get results for (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @return ApiResponse<PageWebhookResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getWebhookResultsWithHttpInfo(UUID webhookId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId) throws ApiException { okhttp3.Call localVarCall = getWebhookResultsValidateBeforeCall(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a webhook results for a webhook (asynchronously) * * @param webhookId ID of webhook to get results for (required) * @param page Optional page index in list pagination (optional, default to 0) * @param size Optional page size in list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional search filter (optional) * @param since Filter by created at after the given timestamp (optional) * @param before Filter by created at before the given timestamp (optional) * @param unseenOnly Filter for unseen exceptions only (optional) * @param resultType Filter by result type (optional) * @param eventName Filter by event name (optional) * @param minStatusCode Minimum response status (optional) * @param maxStatusCode Maximum response status (optional) * @param inboxId Inbox ID (optional) * @param smsId Sms ID (optional) * @param attachmentId Attachment ID (optional) * @param emailId Email ID (optional) * @param phoneId Phone ID (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultsAsync(UUID webhookId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean unseenOnly, String resultType, String eventName, Integer minStatusCode, Integer maxStatusCode, UUID inboxId, UUID smsId, UUID attachmentId, UUID emailId, UUID phoneId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookResultsValidateBeforeCall(webhookId, page, size, sort, searchFilter, since, before, unseenOnly, resultType, eventName, minStatusCode, maxStatusCode, inboxId, smsId, attachmentId, emailId, phoneId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhookResultsCount * @param webhookId ID of webhook to get results for (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultsCountCall(UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}/results/count" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getWebhookResultsCountValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhookResultsCount(Async)"); } okhttp3.Call localVarCall = getWebhookResultsCountCall(webhookId, _callback); return localVarCall; } /** * Get a webhook results count for a webhook * * @param webhookId ID of webhook to get results for (required) * @return CountDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public CountDto getWebhookResultsCount(UUID webhookId) throws ApiException { ApiResponse localVarResp = getWebhookResultsCountWithHttpInfo(webhookId); return localVarResp.getData(); } /** * Get a webhook results count for a webhook * * @param webhookId ID of webhook to get results for (required) * @return ApiResponse<CountDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getWebhookResultsCountWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = getWebhookResultsCountValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a webhook results count for a webhook (asynchronously) * * @param webhookId ID of webhook to get results for (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultsCountAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookResultsCountValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhookResultsUnseenErrorCount * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultsUnseenErrorCountCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/results/unseen-count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getWebhookResultsUnseenErrorCountValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookResultsUnseenErrorCountCall(_callback); return localVarCall; } /** * Get count of unseen webhook results with error status * * @return UnseenErrorCountDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public UnseenErrorCountDto getWebhookResultsUnseenErrorCount() throws ApiException { ApiResponse localVarResp = getWebhookResultsUnseenErrorCountWithHttpInfo(); return localVarResp.getData(); } /** * Get count of unseen webhook results with error status * * @return ApiResponse<UnseenErrorCountDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getWebhookResultsUnseenErrorCountWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getWebhookResultsUnseenErrorCountValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get count of unseen webhook results with error status (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getWebhookResultsUnseenErrorCountAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookResultsUnseenErrorCountValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getWebhooks * @param inboxId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public okhttp3.Call getWebhooksCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/webhooks" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getWebhooksValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'inboxId' is set if (inboxId == null) { throw new ApiException("Missing the required parameter 'inboxId' when calling getWebhooks(Async)"); } okhttp3.Call localVarCall = getWebhooksCall(inboxId, _callback); return localVarCall; } /** * Get all webhooks for an Inbox * * @param inboxId (required) * @return List<WebhookDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public List getWebhooks(UUID inboxId) throws ApiException { ApiResponse> localVarResp = getWebhooksWithHttpInfo(inboxId); return localVarResp.getData(); } /** * Get all webhooks for an Inbox * * @param inboxId (required) * @return ApiResponse<List<WebhookDto>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public ApiResponse> getWebhooksWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get all webhooks for an Inbox (asynchronously) * * @param inboxId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public okhttp3.Call getWebhooksAsync(UUID inboxId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for redriveAllWebhookResults * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call redriveAllWebhookResultsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/results/redrive"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call redriveAllWebhookResultsValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = redriveAllWebhookResultsCall(_callback); return localVarCall; } /** * Redrive all webhook results that have failed status * Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. * @return WebhookRedriveAllResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookRedriveAllResult redriveAllWebhookResults() throws ApiException { ApiResponse localVarResp = redriveAllWebhookResultsWithHttpInfo(); return localVarResp.getData(); } /** * Redrive all webhook results that have failed status * Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. * @return ApiResponse<WebhookRedriveAllResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse redriveAllWebhookResultsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = redriveAllWebhookResultsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Redrive all webhook results that have failed status (asynchronously) * Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call redriveAllWebhookResultsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = redriveAllWebhookResultsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for redriveWebhookResult * @param webhookResultId Webhook Result ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call redriveWebhookResultCall(UUID webhookResultId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/results/{webhookResultId}/redrive" .replaceAll("\\{" + "webhookResultId" + "\\}", localVarApiClient.escapeString(webhookResultId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call redriveWebhookResultValidateBeforeCall(UUID webhookResultId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookResultId' is set if (webhookResultId == null) { throw new ApiException("Missing the required parameter 'webhookResultId' when calling redriveWebhookResult(Async)"); } okhttp3.Call localVarCall = redriveWebhookResultCall(webhookResultId, _callback); return localVarCall; } /** * Get a webhook result and try to resend the original webhook payload * Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. * @param webhookResultId Webhook Result ID (required) * @return WebhookRedriveResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookRedriveResult redriveWebhookResult(UUID webhookResultId) throws ApiException { ApiResponse localVarResp = redriveWebhookResultWithHttpInfo(webhookResultId); return localVarResp.getData(); } /** * Get a webhook result and try to resend the original webhook payload * Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. * @param webhookResultId Webhook Result ID (required) * @return ApiResponse<WebhookRedriveResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse redriveWebhookResultWithHttpInfo(UUID webhookResultId) throws ApiException { okhttp3.Call localVarCall = redriveWebhookResultValidateBeforeCall(webhookResultId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a webhook result and try to resend the original webhook payload (asynchronously) * Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method. * @param webhookResultId Webhook Result ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call redriveWebhookResultAsync(UUID webhookResultId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = redriveWebhookResultValidateBeforeCall(webhookResultId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for sendTestData * @param webhookId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call sendTestDataCall(UUID webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}/test" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call sendTestDataValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling sendTestData(Async)"); } okhttp3.Call localVarCall = sendTestDataCall(webhookId, _callback); return localVarCall; } /** * Send webhook test data * * @param webhookId (required) * @return WebhookTestResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public WebhookTestResult sendTestData(UUID webhookId) throws ApiException { ApiResponse localVarResp = sendTestDataWithHttpInfo(webhookId); return localVarResp.getData(); } /** * Send webhook test data * * @param webhookId (required) * @return ApiResponse<WebhookTestResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public ApiResponse sendTestDataWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = sendTestDataValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Send webhook test data (asynchronously) * * @param webhookId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
*/ public okhttp3.Call sendTestDataAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendTestDataValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateWebhookHeaders * @param webhookId (required) * @param webhookHeaders (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call updateWebhookHeadersCall(UUID webhookId, WebhookHeaders webhookHeaders, final ApiCallback _callback) throws ApiException { Object localVarPostBody = webhookHeaders; // create path and map variables String localVarPath = "/webhooks/{webhookId}/headers" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateWebhookHeadersValidateBeforeCall(UUID webhookId, WebhookHeaders webhookHeaders, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling updateWebhookHeaders(Async)"); } // verify the required parameter 'webhookHeaders' is set if (webhookHeaders == null) { throw new ApiException("Missing the required parameter 'webhookHeaders' when calling updateWebhookHeaders(Async)"); } okhttp3.Call localVarCall = updateWebhookHeadersCall(webhookId, webhookHeaders, _callback); return localVarCall; } /** * Update a webhook request headers * * @param webhookId (required) * @param webhookHeaders (required) * @return WebhookDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public WebhookDto updateWebhookHeaders(UUID webhookId, WebhookHeaders webhookHeaders) throws ApiException { ApiResponse localVarResp = updateWebhookHeadersWithHttpInfo(webhookId, webhookHeaders); return localVarResp.getData(); } /** * Update a webhook request headers * * @param webhookId (required) * @param webhookHeaders (required) * @return ApiResponse<WebhookDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse updateWebhookHeadersWithHttpInfo(UUID webhookId, WebhookHeaders webhookHeaders) throws ApiException { okhttp3.Call localVarCall = updateWebhookHeadersValidateBeforeCall(webhookId, webhookHeaders, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update a webhook request headers (asynchronously) * * @param webhookId (required) * @param webhookHeaders (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call updateWebhookHeadersAsync(UUID webhookId, WebhookHeaders webhookHeaders, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateWebhookHeadersValidateBeforeCall(webhookId, webhookHeaders, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for verifyWebhookSignature * @param verifyWebhookSignatureOptions (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call verifyWebhookSignatureCall(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = verifyWebhookSignatureOptions; // create path and map variables String localVarPath = "/webhooks/verify"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call verifyWebhookSignatureValidateBeforeCall(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, final ApiCallback _callback) throws ApiException { // verify the required parameter 'verifyWebhookSignatureOptions' is set if (verifyWebhookSignatureOptions == null) { throw new ApiException("Missing the required parameter 'verifyWebhookSignatureOptions' when calling verifyWebhookSignature(Async)"); } okhttp3.Call localVarCall = verifyWebhookSignatureCall(verifyWebhookSignatureOptions, _callback); return localVarCall; } /** * Verify a webhook payload signature * Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. * @param verifyWebhookSignatureOptions (required) * @return VerifyWebhookSignatureResults * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public VerifyWebhookSignatureResults verifyWebhookSignature(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions) throws ApiException { ApiResponse localVarResp = verifyWebhookSignatureWithHttpInfo(verifyWebhookSignatureOptions); return localVarResp.getData(); } /** * Verify a webhook payload signature * Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. * @param verifyWebhookSignatureOptions (required) * @return ApiResponse<VerifyWebhookSignatureResults> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse verifyWebhookSignatureWithHttpInfo(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions) throws ApiException { okhttp3.Call localVarCall = verifyWebhookSignatureValidateBeforeCall(verifyWebhookSignatureOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Verify a webhook payload signature (asynchronously) * Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server. * @param verifyWebhookSignatureOptions (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call verifyWebhookSignatureAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = verifyWebhookSignatureValidateBeforeCall(verifyWebhookSignatureOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for waitForWebhookResults * @param webhookId ID of webhook to get results for (required) * @param expectedCount Expected result count (required) * @param timeout Max time to wait in milliseconds (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call waitForWebhookResultsCall(UUID webhookId, Integer expectedCount, Integer timeout, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/webhooks/{webhookId}/wait" .replaceAll("\\{" + "webhookId" + "\\}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (expectedCount != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("expectedCount", expectedCount)); } if (timeout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeout", timeout)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call waitForWebhookResultsValidateBeforeCall(UUID webhookId, Integer expectedCount, Integer timeout, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling waitForWebhookResults(Async)"); } // verify the required parameter 'expectedCount' is set if (expectedCount == null) { throw new ApiException("Missing the required parameter 'expectedCount' when calling waitForWebhookResults(Async)"); } // verify the required parameter 'timeout' is set if (timeout == null) { throw new ApiException("Missing the required parameter 'timeout' when calling waitForWebhookResults(Async)"); } okhttp3.Call localVarCall = waitForWebhookResultsCall(webhookId, expectedCount, timeout, _callback); return localVarCall; } /** * Wait for webhook results for a webhook * * @param webhookId ID of webhook to get results for (required) * @param expectedCount Expected result count (required) * @param timeout Max time to wait in milliseconds (required) * @return List<WebhookResultDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List waitForWebhookResults(UUID webhookId, Integer expectedCount, Integer timeout) throws ApiException { ApiResponse> localVarResp = waitForWebhookResultsWithHttpInfo(webhookId, expectedCount, timeout); return localVarResp.getData(); } /** * Wait for webhook results for a webhook * * @param webhookId ID of webhook to get results for (required) * @param expectedCount Expected result count (required) * @param timeout Max time to wait in milliseconds (required) * @return ApiResponse<List<WebhookResultDto>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse> waitForWebhookResultsWithHttpInfo(UUID webhookId, Integer expectedCount, Integer timeout) throws ApiException { okhttp3.Call localVarCall = waitForWebhookResultsValidateBeforeCall(webhookId, expectedCount, timeout, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Wait for webhook results for a webhook (asynchronously) * * @param webhookId ID of webhook to get results for (required) * @param expectedCount Expected result count (required) * @param timeout Max time to wait in milliseconds (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call waitForWebhookResultsAsync(UUID webhookId, Integer expectedCount, Integer timeout, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = waitForWebhookResultsValidateBeforeCall(webhookId, expectedCount, timeout, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy