Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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