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.
*/
public okhttp3.Call createRandomInboxCall(Boolean allowTeamAccess, Boolean useDomainPool, OffsetDateTime expiresAt, Long expiresIn, String emailAddress, String inboxType, String description, String name, List tags, Boolean favourite, Boolean virtualInbox, Boolean useShortAddress, String domainName, UUID domainId, String prefix, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/createInbox";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (allowTeamAccess != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowTeamAccess", allowTeamAccess));
}
if (useDomainPool != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("useDomainPool", useDomainPool));
}
if (expiresAt != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresAt", expiresAt));
}
if (expiresIn != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresIn", expiresIn));
}
if (emailAddress != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailAddress", emailAddress));
}
if (inboxType != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxType", inboxType));
}
if (description != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("description", description));
}
if (name != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name));
}
if (tags != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tags", tags));
}
if (favourite != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("favourite", favourite));
}
if (virtualInbox != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("virtualInbox", virtualInbox));
}
if (useShortAddress != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("useShortAddress", useShortAddress));
}
if (domainName != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("domainName", domainName));
}
if (domainId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("domainId", domainId));
}
if (prefix != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("prefix", prefix));
}
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 createRandomInboxValidateBeforeCall(Boolean allowTeamAccess, Boolean useDomainPool, OffsetDateTime expiresAt, Long expiresIn, String emailAddress, String inboxType, String description, String name, List tags, Boolean favourite, Boolean virtualInbox, Boolean useShortAddress, String domainName, UUID domainId, String prefix, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createRandomInboxCall(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix, _callback);
return localVarCall;
}
/**
* Create new random inbox
* Returns an Inbox with an `id` and an `emailAddress`
* @param allowTeamAccess (optional)
* @param useDomainPool (optional)
* @param expiresAt (optional)
* @param expiresIn (optional)
* @param emailAddress (optional)
* @param inboxType (optional)
* @param description (optional)
* @param name (optional)
* @param tags (optional)
* @param favourite (optional)
* @param virtualInbox (optional)
* @param useShortAddress (optional)
* @param domainName (optional)
* @param domainId (optional)
* @param prefix (optional)
* @return InboxDto
* @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 InboxDto createRandomInbox(Boolean allowTeamAccess, Boolean useDomainPool, OffsetDateTime expiresAt, Long expiresIn, String emailAddress, String inboxType, String description, String name, List tags, Boolean favourite, Boolean virtualInbox, Boolean useShortAddress, String domainName, UUID domainId, String prefix) throws ApiException {
ApiResponse localVarResp = createRandomInboxWithHttpInfo(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix);
return localVarResp.getData();
}
/**
* Create new random inbox
* Returns an Inbox with an `id` and an `emailAddress`
* @param allowTeamAccess (optional)
* @param useDomainPool (optional)
* @param expiresAt (optional)
* @param expiresIn (optional)
* @param emailAddress (optional)
* @param inboxType (optional)
* @param description (optional)
* @param name (optional)
* @param tags (optional)
* @param favourite (optional)
* @param virtualInbox (optional)
* @param useShortAddress (optional)
* @param domainName (optional)
* @param domainId (optional)
* @param prefix (optional)
* @return ApiResponse<InboxDto>
* @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 createRandomInboxWithHttpInfo(Boolean allowTeamAccess, Boolean useDomainPool, OffsetDateTime expiresAt, Long expiresIn, String emailAddress, String inboxType, String description, String name, List tags, Boolean favourite, Boolean virtualInbox, Boolean useShortAddress, String domainName, UUID domainId, String prefix) throws ApiException {
okhttp3.Call localVarCall = createRandomInboxValidateBeforeCall(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create new random inbox (asynchronously)
* Returns an Inbox with an `id` and an `emailAddress`
* @param allowTeamAccess (optional)
* @param useDomainPool (optional)
* @param expiresAt (optional)
* @param expiresIn (optional)
* @param emailAddress (optional)
* @param inboxType (optional)
* @param description (optional)
* @param name (optional)
* @param tags (optional)
* @param favourite (optional)
* @param virtualInbox (optional)
* @param useShortAddress (optional)
* @param domainName (optional)
* @param domainId (optional)
* @param prefix (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
201
Created
-
*/
public okhttp3.Call createRandomInboxAsync(Boolean allowTeamAccess, Boolean useDomainPool, OffsetDateTime expiresAt, Long expiresIn, String emailAddress, String inboxType, String description, String name, List tags, Boolean favourite, Boolean virtualInbox, Boolean useShortAddress, String domainName, UUID domainId, String prefix, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createRandomInboxValidateBeforeCall(allowTeamAccess, useDomainPool, expiresAt, expiresIn, emailAddress, inboxType, description, name, tags, favourite, virtualInbox, useShortAddress, domainName, domainId, prefix, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for deleteEmailAddress
* @param inboxId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteEmailAddressCall(UUID inboxId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/deleteEmailAddress";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (inboxId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId));
}
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 deleteEmailAddressValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'inboxId' is set
if (inboxId == null) {
throw new ApiException("Missing the required parameter 'inboxId' when calling deleteEmailAddress(Async)");
}
okhttp3.Call localVarCall = deleteEmailAddressCall(inboxId, _callback);
return localVarCall;
}
/**
* Delete inbox email address by inbox id
* Deletes inbox email address
* @param inboxId (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 deleteEmailAddress(UUID inboxId) throws ApiException {
deleteEmailAddressWithHttpInfo(inboxId);
}
/**
* Delete inbox email address by inbox id
* Deletes inbox email address
* @param inboxId (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 deleteEmailAddressWithHttpInfo(UUID inboxId) throws ApiException {
okhttp3.Call localVarCall = deleteEmailAddressValidateBeforeCall(inboxId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete inbox email address by inbox id (asynchronously)
* Deletes inbox email address
* @param inboxId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteEmailAddressAsync(UUID inboxId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteEmailAddressValidateBeforeCall(inboxId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for emptyInbox
* @param inboxId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call emptyInboxCall(UUID inboxId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/emptyInbox";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (inboxId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId));
}
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 emptyInboxValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'inboxId' is set
if (inboxId == null) {
throw new ApiException("Missing the required parameter 'inboxId' when calling emptyInbox(Async)");
}
okhttp3.Call localVarCall = emptyInboxCall(inboxId, _callback);
return localVarCall;
}
/**
* Delete all emails in an inbox
* Deletes all emails
* @param inboxId (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 emptyInbox(UUID inboxId) throws ApiException {
emptyInboxWithHttpInfo(inboxId);
}
/**
* Delete all emails in an inbox
* Deletes all emails
* @param inboxId (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 emptyInboxWithHttpInfo(UUID inboxId) throws ApiException {
okhttp3.Call localVarCall = emptyInboxValidateBeforeCall(inboxId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Delete all emails in an inbox (asynchronously)
* Deletes all emails
* @param inboxId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call emptyInboxAsync(UUID inboxId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = emptyInboxValidateBeforeCall(inboxId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for sendEmailQuery
* @param to Email address to send to (required)
* @param senderId ID of inbox to send from. If null an inbox will be created for sending (optional)
* @param body Body of the email message. Supports HTML (optional)
* @param subject Subject line of the email (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
201
Created
-
*/
public okhttp3.Call sendEmailQueryCall(String to, UUID senderId, String body, String subject, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/sendEmailQuery";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (senderId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("senderId", senderId));
}
if (to != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("to", to));
}
if (body != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("body", body));
}
if (subject != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("subject", subject));
}
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 sendEmailQueryValidateBeforeCall(String to, UUID senderId, String body, String subject, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'to' is set
if (to == null) {
throw new ApiException("Missing the required parameter 'to' when calling sendEmailQuery(Async)");
}
okhttp3.Call localVarCall = sendEmailQueryCall(to, senderId, body, subject, _callback);
return localVarCall;
}
/**
* Send an email using query parameters
* If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded.
* @param to Email address to send to (required)
* @param senderId ID of inbox to send from. If null an inbox will be created for sending (optional)
* @param body Body of the email message. Supports HTML (optional)
* @param subject Subject line of the email (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
201
Created
-
*/
public void sendEmailQuery(String to, UUID senderId, String body, String subject) throws ApiException {
sendEmailQueryWithHttpInfo(to, senderId, body, subject);
}
/**
* Send an email using query parameters
* If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded.
* @param to Email address to send to (required)
* @param senderId ID of inbox to send from. If null an inbox will be created for sending (optional)
* @param body Body of the email message. Supports HTML (optional)
* @param subject Subject line of the email (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
201
Created
-
*/
public ApiResponse sendEmailQueryWithHttpInfo(String to, UUID senderId, String body, String subject) throws ApiException {
okhttp3.Call localVarCall = sendEmailQueryValidateBeforeCall(to, senderId, body, subject, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Send an email using query parameters (asynchronously)
* If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded.
* @param to Email address to send to (required)
* @param senderId ID of inbox to send from. If null an inbox will be created for sending (optional)
* @param body Body of the email message. Supports HTML (optional)
* @param subject Subject line of the email (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
201
Created
-
*/
public okhttp3.Call sendEmailQueryAsync(String to, UUID senderId, String body, String subject, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = sendEmailQueryValidateBeforeCall(to, senderId, body, subject, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for sendEmailSimple
* @param simpleSendEmailOptions (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 sendEmailSimpleCall(SimpleSendEmailOptions simpleSendEmailOptions, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = simpleSendEmailOptions;
// create path and map variables
String localVarPath = "/sendEmail";
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 sendEmailSimpleValidateBeforeCall(SimpleSendEmailOptions simpleSendEmailOptions, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'simpleSendEmailOptions' is set
if (simpleSendEmailOptions == null) {
throw new ApiException("Missing the required parameter 'simpleSendEmailOptions' when calling sendEmailSimple(Async)");
}
okhttp3.Call localVarCall = sendEmailSimpleCall(simpleSendEmailOptions, _callback);
return localVarCall;
}
/**
* Send an email
* If no senderId or inboxId provided a random email address will be used to send from.
* @param simpleSendEmailOptions (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
201
Created
-
*/
public void sendEmailSimple(SimpleSendEmailOptions simpleSendEmailOptions) throws ApiException {
sendEmailSimpleWithHttpInfo(simpleSendEmailOptions);
}
/**
* Send an email
* If no senderId or inboxId provided a random email address will be used to send from.
* @param simpleSendEmailOptions (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
201
Created
-
*/
public ApiResponse sendEmailSimpleWithHttpInfo(SimpleSendEmailOptions simpleSendEmailOptions) throws ApiException {
okhttp3.Call localVarCall = sendEmailSimpleValidateBeforeCall(simpleSendEmailOptions, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Send an email (asynchronously)
* If no senderId or inboxId provided a random email address will be used to send from.
* @param simpleSendEmailOptions (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