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 java.time.OffsetDateTime;
import com.mailslurp.models.PageEmailValidationRequest;
import java.util.UUID;
import com.mailslurp.models.ValidateEmailAddressListOptions;
import com.mailslurp.models.ValidateEmailAddressListResult;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class EmailVerificationControllerApi {
private ApiClient localVarApiClient;
public EmailVerificationControllerApi() {
this(Configuration.getDefaultApiClient());
}
public EmailVerificationControllerApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for deleteAllValidationRequests
* @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 deleteAllValidationRequestsCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/email-verification";
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 deleteAllValidationRequestsValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteAllValidationRequestsCall(_callback);
return localVarCall;
}
/**
* Delete all validation requests
*
* @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 deleteAllValidationRequests() throws ApiException {
deleteAllValidationRequestsWithHttpInfo();
}
/**
* Delete all validation requests
*
* @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 deleteAllValidationRequestsWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = deleteAllValidationRequestsValidateBeforeCall(null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete all validation requests (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
204
No Content
-
*/
public okhttp3.Call deleteAllValidationRequestsAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteAllValidationRequestsValidateBeforeCall(_callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteValidationRequest
* @param 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
204
No Content
-
*/
public okhttp3.Call deleteValidationRequestCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/email-verification/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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 deleteValidationRequestValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteValidationRequest(Async)");
}
okhttp3.Call localVarCall = deleteValidationRequestCall(id, _callback);
return localVarCall;
}
/**
* Delete a validation record
*
* @param id (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 deleteValidationRequest(UUID id) throws ApiException {
deleteValidationRequestWithHttpInfo(id);
}
/**
* Delete a validation record
*
* @param id (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 deleteValidationRequestWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = deleteValidationRequestValidateBeforeCall(id, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete a validation record (asynchronously)
*
* @param 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
204
No Content
-
*/
public okhttp3.Call deleteValidationRequestAsync(UUID id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteValidationRequestValidateBeforeCall(id, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for getValidationRequests
* @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 before Filter by created at before the given timestamp (optional)
* @param isValid Filter where email is valid is true or false (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 getValidationRequestsCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean isValid, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/email-verification/validation-requests";
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 (isValid != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("isValid", isValid));
}
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 getValidationRequestsValidateBeforeCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean isValid, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getValidationRequestsCall(page, size, sort, searchFilter, since, before, isValid, _callback);
return localVarCall;
}
/**
* Validate a list of email addresses. Per unit billing. See your plan for pricing.
*
* @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 before Filter by created at before the given timestamp (optional)
* @param isValid Filter where email is valid is true or false (optional)
* @return PageEmailValidationRequest
* @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 PageEmailValidationRequest getValidationRequests(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean isValid) throws ApiException {
ApiResponse localVarResp = getValidationRequestsWithHttpInfo(page, size, sort, searchFilter, since, before, isValid);
return localVarResp.getData();
}
/**
* Validate a list of email addresses. Per unit billing. See your plan for pricing.
*
* @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 before Filter by created at before the given timestamp (optional)
* @param isValid Filter where email is valid is true or false (optional)
* @return ApiResponse<PageEmailValidationRequest>
* @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 getValidationRequestsWithHttpInfo(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean isValid) throws ApiException {
okhttp3.Call localVarCall = getValidationRequestsValidateBeforeCall(page, size, sort, searchFilter, since, before, isValid, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Validate a list of email addresses. Per unit billing. See your plan for pricing. (asynchronously)
*
* @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 before Filter by created at before the given timestamp (optional)
* @param isValid Filter where email is valid is true or false (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 getValidationRequestsAsync(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, Boolean isValid, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getValidationRequestsValidateBeforeCall(page, size, sort, searchFilter, since, before, isValid, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for validateEmailAddressList
* @param validateEmailAddressListOptions (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 validateEmailAddressListCall(ValidateEmailAddressListOptions validateEmailAddressListOptions, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = validateEmailAddressListOptions;
// create path and map variables
String localVarPath = "/email-verification/email-address-list";
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 validateEmailAddressListValidateBeforeCall(ValidateEmailAddressListOptions validateEmailAddressListOptions, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'validateEmailAddressListOptions' is set
if (validateEmailAddressListOptions == null) {
throw new ApiException("Missing the required parameter 'validateEmailAddressListOptions' when calling validateEmailAddressList(Async)");
}
okhttp3.Call localVarCall = validateEmailAddressListCall(validateEmailAddressListOptions, _callback);
return localVarCall;
}
/**
* Validate a list of email addresses. Per unit billing. See your plan for pricing.
*
* @param validateEmailAddressListOptions (required)
* @return ValidateEmailAddressListResult
* @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 ValidateEmailAddressListResult validateEmailAddressList(ValidateEmailAddressListOptions validateEmailAddressListOptions) throws ApiException {
ApiResponse localVarResp = validateEmailAddressListWithHttpInfo(validateEmailAddressListOptions);
return localVarResp.getData();
}
/**
* Validate a list of email addresses. Per unit billing. See your plan for pricing.
*
* @param validateEmailAddressListOptions (required)
* @return ApiResponse<ValidateEmailAddressListResult>
* @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 validateEmailAddressListWithHttpInfo(ValidateEmailAddressListOptions validateEmailAddressListOptions) throws ApiException {
okhttp3.Call localVarCall = validateEmailAddressListValidateBeforeCall(validateEmailAddressListOptions, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Validate a list of email addresses. Per unit billing. See your plan for pricing. (asynchronously)
*
* @param validateEmailAddressListOptions (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 validateEmailAddressListAsync(ValidateEmailAddressListOptions validateEmailAddressListOptions, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = validateEmailAddressListValidateBeforeCall(validateEmailAddressListOptions, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}