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

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

Go to download

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

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


package com.mailslurp.apis;

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

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.mailslurp.models.CountDto;
import com.mailslurp.models.CreateInboxDto;
import com.mailslurp.models.CreateInboxRulesetOptions;
import com.mailslurp.models.Email;
import com.mailslurp.models.EmailAvailableResult;
import com.mailslurp.models.EmailPreview;
import com.mailslurp.models.FlushExpiredInboxesResult;
import com.mailslurp.models.ImapAccessDetails;
import com.mailslurp.models.ImapSmtpAccessDetails;
import com.mailslurp.models.ImapSmtpAccessServers;
import com.mailslurp.models.InboxByEmailAddressResult;
import com.mailslurp.models.InboxByNameResult;
import com.mailslurp.models.InboxDto;
import com.mailslurp.models.InboxExistsDto;
import com.mailslurp.models.InboxIdsResult;
import com.mailslurp.models.InboxRulesetDto;
import java.time.OffsetDateTime;
import com.mailslurp.models.PageDeliveryStatus;
import com.mailslurp.models.PageEmailPreview;
import com.mailslurp.models.PageInboxProjection;
import com.mailslurp.models.PageInboxRulesetDto;
import com.mailslurp.models.PageOrganizationInboxProjection;
import com.mailslurp.models.PageScheduledJobs;
import com.mailslurp.models.PageSentEmailProjection;
import com.mailslurp.models.PageTrackingPixelProjection;
import com.mailslurp.models.ScheduledJobDto;
import com.mailslurp.models.SearchInboxesOptions;
import com.mailslurp.models.SendEmailOptions;
import com.mailslurp.models.SendSMTPEnvelopeOptions;
import com.mailslurp.models.SentEmailDto;
import com.mailslurp.models.SetInboxFavouritedOptions;
import com.mailslurp.models.SmtpAccessDetails;
import java.util.UUID;
import com.mailslurp.models.UpdateImapAccessOptions;
import com.mailslurp.models.UpdateInboxOptions;
import com.mailslurp.models.UpdateSmtpAccessOptions;

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

public class InboxControllerApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for cancelScheduledJob
     * @param jobId  (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 cancelScheduledJobCall(UUID jobId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/scheduled-jobs/{jobId}" .replaceAll("\\{" + "jobId" + "\\}", localVarApiClient.escapeString(jobId.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 cancelScheduledJobValidateBeforeCall(UUID jobId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'jobId' is set if (jobId == null) { throw new ApiException("Missing the required parameter 'jobId' when calling cancelScheduledJob(Async)"); } okhttp3.Call localVarCall = cancelScheduledJobCall(jobId, _callback); return localVarCall; } /** * Cancel a scheduled email job * Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. * @param jobId (required) * @return ScheduledJobDto * @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 ScheduledJobDto cancelScheduledJob(UUID jobId) throws ApiException { ApiResponse localVarResp = cancelScheduledJobWithHttpInfo(jobId); return localVarResp.getData(); } /** * Cancel a scheduled email job * Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. * @param jobId (required) * @return ApiResponse<ScheduledJobDto> * @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 cancelScheduledJobWithHttpInfo(UUID jobId) throws ApiException { okhttp3.Call localVarCall = cancelScheduledJobValidateBeforeCall(jobId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Cancel a scheduled email job (asynchronously) * Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete. * @param jobId (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 cancelScheduledJobAsync(UUID jobId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = cancelScheduledJobValidateBeforeCall(jobId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createInbox * @param emailAddress A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `[email protected]`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `[email protected]` or `[email protected]`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) * @param tags Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) * @param name Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) * @param description Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) * @param useDomainPool Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) * @param favourite Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) * @param expiresAt Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) * @param expiresIn Number of milliseconds that inbox should exist for (optional) * @param allowTeamAccess DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) * @param inboxType HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) * @param virtualInbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) * @param useShortAddress Use a shorter email address under 31 characters (optional) * @param domainId ID of custom domain to use for email address. (optional) * @param domainName FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) * @param prefix Prefix to add before the email address for easier labelling or identification. (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 createInboxCall(String emailAddress, List tags, String name, String description, Boolean useDomainPool, Boolean favourite, OffsetDateTime expiresAt, Long expiresIn, Boolean allowTeamAccess, String inboxType, Boolean virtualInbox, Boolean useShortAddress, UUID domainId, String domainName, String prefix, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (emailAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailAddress", emailAddress)); } if (tags != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tags", tags)); } if (name != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); } if (description != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("description", description)); } if (useDomainPool != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("useDomainPool", useDomainPool)); } if (favourite != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("favourite", favourite)); } if (expiresAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresAt", expiresAt)); } if (expiresIn != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("expiresIn", expiresIn)); } if (allowTeamAccess != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowTeamAccess", allowTeamAccess)); } if (inboxType != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxType", inboxType)); } if (virtualInbox != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("virtualInbox", virtualInbox)); } if (useShortAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("useShortAddress", useShortAddress)); } if (domainId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("domainId", domainId)); } if (domainName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("domainName", domainName)); } 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 createInboxValidateBeforeCall(String emailAddress, List tags, String name, String description, Boolean useDomainPool, Boolean favourite, OffsetDateTime expiresAt, Long expiresIn, Boolean allowTeamAccess, String inboxType, Boolean virtualInbox, Boolean useShortAddress, UUID domainId, String domainName, String prefix, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInboxCall(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix, _callback); return localVarCall; } /** * Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. * Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. * @param emailAddress A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `[email protected]`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `[email protected]` or `[email protected]`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) * @param tags Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) * @param name Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) * @param description Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) * @param useDomainPool Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) * @param favourite Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) * @param expiresAt Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) * @param expiresIn Number of milliseconds that inbox should exist for (optional) * @param allowTeamAccess DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) * @param inboxType HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) * @param virtualInbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) * @param useShortAddress Use a shorter email address under 31 characters (optional) * @param domainId ID of custom domain to use for email address. (optional) * @param domainName FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) * @param prefix Prefix to add before the email address for easier labelling or identification. (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 createInbox(String emailAddress, List tags, String name, String description, Boolean useDomainPool, Boolean favourite, OffsetDateTime expiresAt, Long expiresIn, Boolean allowTeamAccess, String inboxType, Boolean virtualInbox, Boolean useShortAddress, UUID domainId, String domainName, String prefix) throws ApiException { ApiResponse localVarResp = createInboxWithHttpInfo(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix); return localVarResp.getData(); } /** * Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. * Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. * @param emailAddress A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `[email protected]`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `[email protected]` or `[email protected]`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) * @param tags Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) * @param name Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) * @param description Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) * @param useDomainPool Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) * @param favourite Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) * @param expiresAt Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) * @param expiresIn Number of milliseconds that inbox should exist for (optional) * @param allowTeamAccess DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) * @param inboxType HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) * @param virtualInbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) * @param useShortAddress Use a shorter email address under 31 characters (optional) * @param domainId ID of custom domain to use for email address. (optional) * @param domainName FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) * @param prefix Prefix to add before the email address for easier labelling or identification. (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 createInboxWithHttpInfo(String emailAddress, List tags, String name, String description, Boolean useDomainPool, Boolean favourite, OffsetDateTime expiresAt, Long expiresIn, Boolean allowTeamAccess, String inboxType, Boolean virtualInbox, Boolean useShortAddress, UUID domainId, String domainName, String prefix) throws ApiException { okhttp3.Call localVarCall = createInboxValidateBeforeCall(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes. (asynchronously) * Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. * @param emailAddress A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `[email protected]`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `[email protected]` or `[email protected]`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Note domain types must match the inbox type - so `SMTP` inboxes will only work with `SMTP` type domains. Avoid `SMTP` inboxes if you need to send emails as they can only receive. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID. (optional) * @param tags Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) * @param name Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) * @param description Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) * @param useDomainPool Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field. Note this feature is only available for `HTTP` inbox types. (optional) * @param favourite Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) * @param expiresAt Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) * @param expiresIn Number of milliseconds that inbox should exist for (optional) * @param allowTeamAccess DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) * @param inboxType HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mxslurp.click`. (optional) * @param virtualInbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) * @param useShortAddress Use a shorter email address under 31 characters (optional) * @param domainId ID of custom domain to use for email address. (optional) * @param domainName FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the `emailAddress` option instead to specify the full custom inbox. (optional) * @param prefix Prefix to add before the email address for easier labelling or identification. (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 createInboxAsync(String emailAddress, List tags, String name, String description, Boolean useDomainPool, Boolean favourite, OffsetDateTime expiresAt, Long expiresIn, Boolean allowTeamAccess, String inboxType, Boolean virtualInbox, Boolean useShortAddress, UUID domainId, String domainName, String prefix, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInboxValidateBeforeCall(emailAddress, tags, name, description, useDomainPool, favourite, expiresAt, expiresIn, allowTeamAccess, inboxType, virtualInbox, useShortAddress, domainId, domainName, prefix, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createInboxRuleset * @param inboxId inboxId (required) * @param createInboxRulesetOptions (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 createInboxRulesetCall(UUID inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createInboxRulesetOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/rulesets" .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 createInboxRulesetValidateBeforeCall(UUID inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, 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 createInboxRuleset(Async)"); } // verify the required parameter 'createInboxRulesetOptions' is set if (createInboxRulesetOptions == null) { throw new ApiException("Missing the required parameter 'createInboxRulesetOptions' when calling createInboxRuleset(Async)"); } okhttp3.Call localVarCall = createInboxRulesetCall(inboxId, createInboxRulesetOptions, _callback); return localVarCall; } /** * Create an inbox ruleset * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * @param inboxId inboxId (required) * @param createInboxRulesetOptions (required) * @return InboxRulesetDto * @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 InboxRulesetDto createInboxRuleset(UUID inboxId, CreateInboxRulesetOptions createInboxRulesetOptions) throws ApiException { ApiResponse localVarResp = createInboxRulesetWithHttpInfo(inboxId, createInboxRulesetOptions); return localVarResp.getData(); } /** * Create an inbox ruleset * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * @param inboxId inboxId (required) * @param createInboxRulesetOptions (required) * @return ApiResponse<InboxRulesetDto> * @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 createInboxRulesetWithHttpInfo(UUID inboxId, CreateInboxRulesetOptions createInboxRulesetOptions) throws ApiException { okhttp3.Call localVarCall = createInboxRulesetValidateBeforeCall(inboxId, createInboxRulesetOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create an inbox ruleset (asynchronously) * Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving * @param inboxId inboxId (required) * @param createInboxRulesetOptions (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 createInboxRulesetAsync(UUID inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInboxRulesetValidateBeforeCall(inboxId, createInboxRulesetOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createInboxWithDefaults * @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 createInboxWithDefaultsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/withDefaults"; 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 createInboxWithDefaultsValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInboxWithDefaultsCall(_callback); return localVarCall; } /** * Create an inbox with default options. Uses MailSlurp domain pool address and is private. * * @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 createInboxWithDefaults() throws ApiException { ApiResponse localVarResp = createInboxWithDefaultsWithHttpInfo(); return localVarResp.getData(); } /** * Create an inbox with default options. Uses MailSlurp domain pool address and is private. * * @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 createInboxWithDefaultsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = createInboxWithDefaultsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create an inbox with default options. Uses MailSlurp domain pool address and is private. (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
201 Created -
*/ public okhttp3.Call createInboxWithDefaultsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInboxWithDefaultsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createInboxWithOptions * @param createInboxDto (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 createInboxWithOptionsCall(CreateInboxDto createInboxDto, final ApiCallback _callback) throws ApiException { Object localVarPostBody = createInboxDto; // create path and map variables String localVarPath = "/inboxes/withOptions"; 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 createInboxWithOptionsValidateBeforeCall(CreateInboxDto createInboxDto, final ApiCallback _callback) throws ApiException { // verify the required parameter 'createInboxDto' is set if (createInboxDto == null) { throw new ApiException("Missing the required parameter 'createInboxDto' when calling createInboxWithOptions(Async)"); } okhttp3.Call localVarCall = createInboxWithOptionsCall(createInboxDto, _callback); return localVarCall; } /** * Create an inbox with options. Extended options for inbox creation. * Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. * @param createInboxDto (required) * @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 createInboxWithOptions(CreateInboxDto createInboxDto) throws ApiException { ApiResponse localVarResp = createInboxWithOptionsWithHttpInfo(createInboxDto); return localVarResp.getData(); } /** * Create an inbox with options. Extended options for inbox creation. * Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. * @param createInboxDto (required) * @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 createInboxWithOptionsWithHttpInfo(CreateInboxDto createInboxDto) throws ApiException { okhttp3.Call localVarCall = createInboxWithOptionsValidateBeforeCall(createInboxDto, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create an inbox with options. Extended options for inbox creation. (asynchronously) * Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. * @param createInboxDto (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 createInboxWithOptionsAsync(CreateInboxDto createInboxDto, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createInboxWithOptionsValidateBeforeCall(createInboxDto, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteAllInboxEmails * @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 deleteAllInboxEmailsCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/deleteAllInboxEmails" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteAllInboxEmailsValidateBeforeCall(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 deleteAllInboxEmails(Async)"); } okhttp3.Call localVarCall = deleteAllInboxEmailsCall(inboxId, _callback); return localVarCall; } /** * Delete all emails in a given inboxes. * Deletes all emails in an inbox. Be careful as emails cannot be recovered * @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 deleteAllInboxEmails(UUID inboxId) throws ApiException { deleteAllInboxEmailsWithHttpInfo(inboxId); } /** * Delete all emails in a given inboxes. * Deletes all emails in an inbox. Be careful as emails cannot be recovered * @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 deleteAllInboxEmailsWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxEmailsValidateBeforeCall(inboxId, null); return localVarApiClient.execute(localVarCall); } /** * Delete all emails in a given inboxes. (asynchronously) * Deletes all emails in an inbox. Be careful as emails cannot be recovered * @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 deleteAllInboxEmailsAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxEmailsValidateBeforeCall(inboxId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteAllInboxes * @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 deleteAllInboxesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes"; 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 deleteAllInboxesValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesCall(_callback); return localVarCall; } /** * Delete all inboxes * Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. * @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 deleteAllInboxes() throws ApiException { deleteAllInboxesWithHttpInfo(); } /** * Delete all inboxes * Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. * @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 deleteAllInboxesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesValidateBeforeCall(null); return localVarApiClient.execute(localVarCall); } /** * Delete all inboxes (asynchronously) * Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. * @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 deleteAllInboxesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesValidateBeforeCall(_callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteAllInboxesByDescription * @param description (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 deleteAllInboxesByDescriptionCall(String description, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/by-description"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (description != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("description", description)); } 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 deleteAllInboxesByDescriptionValidateBeforeCall(String description, final ApiCallback _callback) throws ApiException { // verify the required parameter 'description' is set if (description == null) { throw new ApiException("Missing the required parameter 'description' when calling deleteAllInboxesByDescription(Async)"); } okhttp3.Call localVarCall = deleteAllInboxesByDescriptionCall(description, _callback); return localVarCall; } /** * Delete inboxes by description * Permanently delete all inboxes by description * @param description (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 deleteAllInboxesByDescription(String description) throws ApiException { deleteAllInboxesByDescriptionWithHttpInfo(description); } /** * Delete inboxes by description * Permanently delete all inboxes by description * @param description (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 deleteAllInboxesByDescriptionWithHttpInfo(String description) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesByDescriptionValidateBeforeCall(description, null); return localVarApiClient.execute(localVarCall); } /** * Delete inboxes by description (asynchronously) * Permanently delete all inboxes by description * @param description (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 deleteAllInboxesByDescriptionAsync(String description, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesByDescriptionValidateBeforeCall(description, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteAllInboxesByName * @param name (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 deleteAllInboxesByNameCall(String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/by-name"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (name != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); } 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 deleteAllInboxesByNameValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAllInboxesByName(Async)"); } okhttp3.Call localVarCall = deleteAllInboxesByNameCall(name, _callback); return localVarCall; } /** * Delete inboxes by name * Permanently delete all inboxes by name * @param name (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 deleteAllInboxesByName(String name) throws ApiException { deleteAllInboxesByNameWithHttpInfo(name); } /** * Delete inboxes by name * Permanently delete all inboxes by name * @param name (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 deleteAllInboxesByNameWithHttpInfo(String name) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesByNameValidateBeforeCall(name, null); return localVarApiClient.execute(localVarCall); } /** * Delete inboxes by name (asynchronously) * Permanently delete all inboxes by name * @param name (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 deleteAllInboxesByNameAsync(String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesByNameValidateBeforeCall(name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteAllInboxesByTag * @param tag (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 deleteAllInboxesByTagCall(String tag, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/by-tag"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (tag != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tag", tag)); } 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 deleteAllInboxesByTagValidateBeforeCall(String tag, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tag' is set if (tag == null) { throw new ApiException("Missing the required parameter 'tag' when calling deleteAllInboxesByTag(Async)"); } okhttp3.Call localVarCall = deleteAllInboxesByTagCall(tag, _callback); return localVarCall; } /** * Delete inboxes by tag * Permanently delete all inboxes by tag * @param tag (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 deleteAllInboxesByTag(String tag) throws ApiException { deleteAllInboxesByTagWithHttpInfo(tag); } /** * Delete inboxes by tag * Permanently delete all inboxes by tag * @param tag (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 deleteAllInboxesByTagWithHttpInfo(String tag) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesByTagValidateBeforeCall(tag, null); return localVarApiClient.execute(localVarCall); } /** * Delete inboxes by tag (asynchronously) * Permanently delete all inboxes by tag * @param tag (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 deleteAllInboxesByTagAsync(String tag, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAllInboxesByTagValidateBeforeCall(tag, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteInbox * @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 deleteInboxCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteInboxValidateBeforeCall(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 deleteInbox(Async)"); } okhttp3.Call localVarCall = deleteInboxCall(inboxId, _callback); return localVarCall; } /** * Delete inbox * Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. * @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 deleteInbox(UUID inboxId) throws ApiException { deleteInboxWithHttpInfo(inboxId); } /** * Delete inbox * Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. * @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 deleteInboxWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = deleteInboxValidateBeforeCall(inboxId, null); return localVarApiClient.execute(localVarCall); } /** * Delete inbox (asynchronously) * Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. * @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 deleteInboxAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteInboxValidateBeforeCall(inboxId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for doesInboxExist * @param emailAddress Email address (required) * @param allowCatchAll (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 doesInboxExistCall(String emailAddress, Boolean allowCatchAll, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/exists"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (emailAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailAddress", emailAddress)); } if (allowCatchAll != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowCatchAll", allowCatchAll)); } 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 doesInboxExistValidateBeforeCall(String emailAddress, Boolean allowCatchAll, final ApiCallback _callback) throws ApiException { // verify the required parameter 'emailAddress' is set if (emailAddress == null) { throw new ApiException("Missing the required parameter 'emailAddress' when calling doesInboxExist(Async)"); } okhttp3.Call localVarCall = doesInboxExistCall(emailAddress, allowCatchAll, _callback); return localVarCall; } /** * Does inbox exist * Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses * @param emailAddress Email address (required) * @param allowCatchAll (optional) * @return InboxExistsDto * @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 InboxExistsDto doesInboxExist(String emailAddress, Boolean allowCatchAll) throws ApiException { ApiResponse localVarResp = doesInboxExistWithHttpInfo(emailAddress, allowCatchAll); return localVarResp.getData(); } /** * Does inbox exist * Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses * @param emailAddress Email address (required) * @param allowCatchAll (optional) * @return ApiResponse<InboxExistsDto> * @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 doesInboxExistWithHttpInfo(String emailAddress, Boolean allowCatchAll) throws ApiException { okhttp3.Call localVarCall = doesInboxExistValidateBeforeCall(emailAddress, allowCatchAll, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Does inbox exist (asynchronously) * Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses * @param emailAddress Email address (required) * @param allowCatchAll (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 doesInboxExistAsync(String emailAddress, Boolean allowCatchAll, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = doesInboxExistValidateBeforeCall(emailAddress, allowCatchAll, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for flushExpired * @param before Optional expired at before flag to flush expired inboxes that have expired before the given time (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 flushExpiredCall(OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/expired"; 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 flushExpiredValidateBeforeCall(OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = flushExpiredCall(before, _callback); return localVarCall; } /** * Remove expired inboxes * Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) * @param before Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) * @return FlushExpiredInboxesResult * @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 FlushExpiredInboxesResult flushExpired(OffsetDateTime before) throws ApiException { ApiResponse localVarResp = flushExpiredWithHttpInfo(before); return localVarResp.getData(); } /** * Remove expired inboxes * Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) * @param before Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) * @return ApiResponse<FlushExpiredInboxesResult> * @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 flushExpiredWithHttpInfo(OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = flushExpiredValidateBeforeCall(before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Remove expired inboxes (asynchronously) * Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) * @param before Optional expired at before flag to flush expired inboxes that have expired before the given time (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 flushExpiredAsync(OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = flushExpiredValidateBeforeCall(before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllInboxes * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (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 getAllInboxesCall(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/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 (favourite != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("favourite", favourite)); } if (search != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); } if (tag != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tag", tag)); } if (teamAccess != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("teamAccess", teamAccess)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (inboxType != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxType", inboxType)); } if (inboxFunction != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxFunction", inboxFunction)); } if (domainId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("domainId", domainId)); } 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 getAllInboxesValidateBeforeCall(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllInboxesCall(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, _callback); return localVarCall; } /** * List All Inboxes Paginated * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (optional) * @return PageInboxProjection * @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 PageInboxProjection getAllInboxes(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId) throws ApiException { ApiResponse localVarResp = getAllInboxesWithHttpInfo(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); return localVarResp.getData(); } /** * List All Inboxes Paginated * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (optional) * @return ApiResponse<PageInboxProjection> * @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 getAllInboxesWithHttpInfo(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId) throws ApiException { okhttp3.Call localVarCall = getAllInboxesValidateBeforeCall(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List All Inboxes Paginated (asynchronously) * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (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 getAllInboxesAsync(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllInboxesValidateBeforeCall(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllInboxesOffsetPaginated * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (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 getAllInboxesOffsetPaginatedCall(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/offset-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 (favourite != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("favourite", favourite)); } if (search != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); } if (tag != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("tag", tag)); } if (teamAccess != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("teamAccess", teamAccess)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (inboxType != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxType", inboxType)); } if (inboxFunction != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxFunction", inboxFunction)); } if (domainId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("domainId", domainId)); } 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 getAllInboxesOffsetPaginatedValidateBeforeCall(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllInboxesOffsetPaginatedCall(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, _callback); return localVarCall; } /** * List All Inboxes Offset Paginated * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (optional) * @return PageInboxProjection * @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 PageInboxProjection getAllInboxesOffsetPaginated(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId) throws ApiException { ApiResponse localVarResp = getAllInboxesOffsetPaginatedWithHttpInfo(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId); return localVarResp.getData(); } /** * List All Inboxes Offset Paginated * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (optional) * @return ApiResponse<PageInboxProjection> * @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 getAllInboxesOffsetPaginatedWithHttpInfo(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId) throws ApiException { okhttp3.Call localVarCall = getAllInboxesOffsetPaginatedValidateBeforeCall(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List All Inboxes Offset Paginated (asynchronously) * List inboxes in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @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 favourite Optionally filter results for favourites only (optional, default to false) * @param search Optionally filter by search words partial matching ID, tags, name, and email address (optional) * @param tag Optionally filter by tags. Will return inboxes that include given tags (optional) * @param teamAccess DEPRECATED. Optionally filter by team access. (optional) * @param since Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @param inboxType Optional filter by inbox type (optional) * @param inboxFunction Optional filter by inbox function (optional) * @param domainId Optional domain ID filter (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 getAllInboxesOffsetPaginatedAsync(Integer page, Integer size, String sort, Boolean favourite, String search, String tag, Boolean teamAccess, OffsetDateTime since, OffsetDateTime before, String inboxType, String inboxFunction, UUID domainId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllInboxesOffsetPaginatedValidateBeforeCall(page, size, sort, favourite, search, tag, teamAccess, since, before, inboxType, inboxFunction, domainId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllScheduledJobs * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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 getAllScheduledJobsCall(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 = "/inboxes/scheduled-jobs"; 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 getAllScheduledJobsValidateBeforeCall(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllScheduledJobsCall(page, size, sort, since, before, _callback); return localVarCall; } /** * Get all scheduled email sending jobs for account * Schedule sending of emails using scheduled jobs. These can be inbox or account level. * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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 PageScheduledJobs * @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 PageScheduledJobs getAllScheduledJobs(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getAllScheduledJobsWithHttpInfo(page, size, sort, since, before); return localVarResp.getData(); } /** * Get all scheduled email sending jobs for account * Schedule sending of emails using scheduled jobs. These can be inbox or account level. * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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<PageScheduledJobs> * @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 getAllScheduledJobsWithHttpInfo(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getAllScheduledJobsValidateBeforeCall(page, size, sort, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get all scheduled email sending jobs for account (asynchronously) * Schedule sending of emails using scheduled jobs. These can be inbox or account level. * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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 getAllScheduledJobsAsync(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllScheduledJobsValidateBeforeCall(page, size, sort, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getDeliveryStatusesByInboxId * @param inboxId (required) * @param page Optional page index in delivery status list pagination (optional, default to 0) * @param size Optional page size in delivery status 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 -
* @deprecated */ @Deprecated public okhttp3.Call getDeliveryStatusesByInboxIdCall(UUID inboxId, 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 = "/inboxes/{inboxId}/delivery-status" .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 (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); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getDeliveryStatusesByInboxIdValidateBeforeCall(UUID inboxId, Integer page, Integer size, String sort, 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 getDeliveryStatusesByInboxId(Async)"); } okhttp3.Call localVarCall = getDeliveryStatusesByInboxIdCall(inboxId, page, size, sort, since, before, _callback); return localVarCall; } /** * * Get all email delivery statuses for an inbox * @param inboxId (required) * @param page Optional page index in delivery status list pagination (optional, default to 0) * @param size Optional page size in delivery status 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 PageDeliveryStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public PageDeliveryStatus getDeliveryStatusesByInboxId(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getDeliveryStatusesByInboxIdWithHttpInfo(inboxId, page, size, sort, since, before); return localVarResp.getData(); } /** * * Get all email delivery statuses for an inbox * @param inboxId (required) * @param page Optional page index in delivery status list pagination (optional, default to 0) * @param size Optional page size in delivery status 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<PageDeliveryStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public ApiResponse getDeliveryStatusesByInboxIdWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getDeliveryStatusesByInboxIdValidateBeforeCall(inboxId, page, size, sort, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get all email delivery statuses for an inbox * @param inboxId (required) * @param page Optional page index in delivery status list pagination (optional, default to 0) * @param size Optional page size in delivery status 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 -
* @deprecated */ @Deprecated public okhttp3.Call getDeliveryStatusesByInboxIdAsync(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDeliveryStatusesByInboxIdValidateBeforeCall(inboxId, page, size, sort, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getEmails * @param inboxId Id of inbox that emails belongs to (required) * @param size Alias for limit. Assessed first before assessing any passed limit. (optional) * @param limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) * @param sort Sort the results by received date and direction ASC or DESC (optional) * @param retryTimeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) * @param delayTimeout (optional) * @param minCount Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) * @param unreadOnly (optional) * @param before Exclude emails received after this ISO 8601 date time (optional) * @param since Exclude emails received before this ISO 8601 date time (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 getEmailsCall(UUID inboxId, Integer size, Integer limit, String sort, Long retryTimeout, Long delayTimeout, Long minCount, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/emails" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (size != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } if (retryTimeout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("retryTimeout", retryTimeout)); } if (delayTimeout != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("delayTimeout", delayTimeout)); } if (minCount != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("minCount", minCount)); } if (unreadOnly != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("unreadOnly", unreadOnly)); } if (before != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before)); } if (since != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); } 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 getEmailsValidateBeforeCall(UUID inboxId, Integer size, Integer limit, String sort, Long retryTimeout, Long delayTimeout, Long minCount, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, 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 getEmails(Async)"); } okhttp3.Call localVarCall = getEmailsCall(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since, _callback); return localVarCall; } /** * Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. * List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached * @param inboxId Id of inbox that emails belongs to (required) * @param size Alias for limit. Assessed first before assessing any passed limit. (optional) * @param limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) * @param sort Sort the results by received date and direction ASC or DESC (optional) * @param retryTimeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) * @param delayTimeout (optional) * @param minCount Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) * @param unreadOnly (optional) * @param before Exclude emails received after this ISO 8601 date time (optional) * @param since Exclude emails received before this ISO 8601 date time (optional) * @return List<EmailPreview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public List getEmails(UUID inboxId, Integer size, Integer limit, String sort, Long retryTimeout, Long delayTimeout, Long minCount, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since) throws ApiException { ApiResponse> localVarResp = getEmailsWithHttpInfo(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since); return localVarResp.getData(); } /** * Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. * List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached * @param inboxId Id of inbox that emails belongs to (required) * @param size Alias for limit. Assessed first before assessing any passed limit. (optional) * @param limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) * @param sort Sort the results by received date and direction ASC or DESC (optional) * @param retryTimeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) * @param delayTimeout (optional) * @param minCount Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) * @param unreadOnly (optional) * @param before Exclude emails received after this ISO 8601 date time (optional) * @param since Exclude emails received before this ISO 8601 date time (optional) * @return ApiResponse<List<EmailPreview>> * @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> getEmailsWithHttpInfo(UUID inboxId, Integer size, Integer limit, String sort, Long retryTimeout, Long delayTimeout, Long minCount, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since) throws ApiException { okhttp3.Call localVarCall = getEmailsValidateBeforeCall(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead. (asynchronously) * List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached * @param inboxId Id of inbox that emails belongs to (required) * @param size Alias for limit. Assessed first before assessing any passed limit. (optional) * @param limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) * @param sort Sort the results by received date and direction ASC or DESC (optional) * @param retryTimeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) * @param delayTimeout (optional) * @param minCount Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) * @param unreadOnly (optional) * @param before Exclude emails received after this ISO 8601 date time (optional) * @param since Exclude emails received before this ISO 8601 date time (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 getEmailsAsync(UUID inboxId, Integer size, Integer limit, String sort, Long retryTimeout, Long delayTimeout, Long minCount, Boolean unreadOnly, OffsetDateTime before, OffsetDateTime since, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getEmailsValidateBeforeCall(inboxId, size, limit, sort, retryTimeout, delayTimeout, minCount, unreadOnly, before, since, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getImapAccess * @param inboxId Inbox 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 getImapAccessCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/imap-access"; 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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getImapAccessValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapAccessCall(inboxId, _callback); return localVarCall; } /** * * Get IMAP access usernames and passwords * @param inboxId Inbox ID (optional) * @return ImapAccessDetails * @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 ImapAccessDetails getImapAccess(UUID inboxId) throws ApiException { ApiResponse localVarResp = getImapAccessWithHttpInfo(inboxId); return localVarResp.getData(); } /** * * Get IMAP access usernames and passwords * @param inboxId Inbox ID (optional) * @return ApiResponse<ImapAccessDetails> * @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 getImapAccessWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getImapAccessValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get IMAP access usernames and passwords * @param inboxId Inbox 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 getImapAccessAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapAccessValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getImapSmtpAccess * @param inboxId Inbox 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 getImapSmtpAccessCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/imap-smtp-access"; 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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getImapSmtpAccessValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessCall(inboxId, _callback); return localVarCall; } /** * * Get IMAP and SMTP access usernames and passwords * @param inboxId Inbox ID (optional) * @return ImapSmtpAccessDetails * @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 ImapSmtpAccessDetails getImapSmtpAccess(UUID inboxId) throws ApiException { ApiResponse localVarResp = getImapSmtpAccessWithHttpInfo(inboxId); return localVarResp.getData(); } /** * * Get IMAP and SMTP access usernames and passwords * @param inboxId Inbox ID (optional) * @return ApiResponse<ImapSmtpAccessDetails> * @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 getImapSmtpAccessWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get IMAP and SMTP access usernames and passwords * @param inboxId Inbox 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 getImapSmtpAccessAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getImapSmtpAccessEnv * @param inboxId Inbox 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 getImapSmtpAccessEnvCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/imap-smtp-access/env"; 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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getImapSmtpAccessEnvValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessEnvCall(inboxId, _callback); return localVarCall; } /** * * Get IMAP and SMTP access details in .env format * @param inboxId Inbox ID (optional) * @return String * @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 String getImapSmtpAccessEnv(UUID inboxId) throws ApiException { ApiResponse localVarResp = getImapSmtpAccessEnvWithHttpInfo(inboxId); return localVarResp.getData(); } /** * * Get IMAP and SMTP access details in .env format * @param inboxId Inbox ID (optional) * @return ApiResponse<String> * @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 getImapSmtpAccessEnvWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessEnvValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get IMAP and SMTP access details in .env format * @param inboxId Inbox 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 getImapSmtpAccessEnvAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessEnvValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getImapSmtpAccessServers * @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 getImapSmtpAccessServersCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/imap-smtp-access/servers"; 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 getImapSmtpAccessServersValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessServersCall(_callback); return localVarCall; } /** * * Get IMAP and SMTP server hosts * @return ImapSmtpAccessServers * @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 ImapSmtpAccessServers getImapSmtpAccessServers() throws ApiException { ApiResponse localVarResp = getImapSmtpAccessServersWithHttpInfo(); return localVarResp.getData(); } /** * * Get IMAP and SMTP server hosts * @return ApiResponse<ImapSmtpAccessServers> * @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 getImapSmtpAccessServersWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessServersValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get IMAP and SMTP server hosts * @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 getImapSmtpAccessServersAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getImapSmtpAccessServersValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInbox * @param inboxId (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getInboxCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getInboxValidateBeforeCall(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 getInbox(Async)"); } okhttp3.Call localVarCall = getInboxCall(inboxId, _callback); return localVarCall; } /** * Get Inbox. Returns properties of an inbox. * Returns an inbox's properties, including its email address and ID. * @param inboxId (required) * @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
200 OK -
*/ public InboxDto getInbox(UUID inboxId) throws ApiException { ApiResponse localVarResp = getInboxWithHttpInfo(inboxId); return localVarResp.getData(); } /** * Get Inbox. Returns properties of an inbox. * Returns an inbox's properties, including its email address and ID. * @param inboxId (required) * @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
200 OK -
*/ public ApiResponse getInboxWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getInboxValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Inbox. Returns properties of an inbox. (asynchronously) * Returns an inbox's properties, including its email address and ID. * @param inboxId (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public okhttp3.Call getInboxAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxByEmailAddress * @param emailAddress (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 getInboxByEmailAddressCall(String emailAddress, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/byEmailAddress"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (emailAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailAddress", emailAddress)); } 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 getInboxByEmailAddressValidateBeforeCall(String emailAddress, final ApiCallback _callback) throws ApiException { // verify the required parameter 'emailAddress' is set if (emailAddress == null) { throw new ApiException("Missing the required parameter 'emailAddress' when calling getInboxByEmailAddress(Async)"); } okhttp3.Call localVarCall = getInboxByEmailAddressCall(emailAddress, _callback); return localVarCall; } /** * Search for an inbox with the provided email address * Get a inbox result by email address * @param emailAddress (required) * @return InboxByEmailAddressResult * @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 InboxByEmailAddressResult getInboxByEmailAddress(String emailAddress) throws ApiException { ApiResponse localVarResp = getInboxByEmailAddressWithHttpInfo(emailAddress); return localVarResp.getData(); } /** * Search for an inbox with the provided email address * Get a inbox result by email address * @param emailAddress (required) * @return ApiResponse<InboxByEmailAddressResult> * @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 getInboxByEmailAddressWithHttpInfo(String emailAddress) throws ApiException { okhttp3.Call localVarCall = getInboxByEmailAddressValidateBeforeCall(emailAddress, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Search for an inbox with the provided email address (asynchronously) * Get a inbox result by email address * @param emailAddress (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 getInboxByEmailAddressAsync(String emailAddress, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxByEmailAddressValidateBeforeCall(emailAddress, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxByName * @param name (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 getInboxByNameCall(String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/byName"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (name != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); } 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 getInboxByNameValidateBeforeCall(String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling getInboxByName(Async)"); } okhttp3.Call localVarCall = getInboxByNameCall(name, _callback); return localVarCall; } /** * Search for an inbox with the given name * Get a inbox result by name * @param name (required) * @return InboxByNameResult * @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 InboxByNameResult getInboxByName(String name) throws ApiException { ApiResponse localVarResp = getInboxByNameWithHttpInfo(name); return localVarResp.getData(); } /** * Search for an inbox with the given name * Get a inbox result by name * @param name (required) * @return ApiResponse<InboxByNameResult> * @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 getInboxByNameWithHttpInfo(String name) throws ApiException { okhttp3.Call localVarCall = getInboxByNameValidateBeforeCall(name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Search for an inbox with the given name (asynchronously) * Get a inbox result by name * @param name (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 getInboxByNameAsync(String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxByNameValidateBeforeCall(name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxCount * @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 getInboxCountCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getInboxCountValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxCountCall(_callback); return localVarCall; } /** * Get total inbox count * * @return CountDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public CountDto getInboxCount() throws ApiException { ApiResponse localVarResp = getInboxCountWithHttpInfo(); return localVarResp.getData(); } /** * Get total inbox count * * @return ApiResponse<CountDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getInboxCountWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getInboxCountValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get total inbox count (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 getInboxCountAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxCountValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxEmailCount * @param inboxId Id of inbox that emails belongs to (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 getInboxEmailCountCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/emails/count" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getInboxEmailCountValidateBeforeCall(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 getInboxEmailCount(Async)"); } okhttp3.Call localVarCall = getInboxEmailCountCall(inboxId, _callback); return localVarCall; } /** * Get email count in inbox * * @param inboxId Id of inbox that emails belongs to (required) * @return CountDto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public CountDto getInboxEmailCount(UUID inboxId) throws ApiException { ApiResponse localVarResp = getInboxEmailCountWithHttpInfo(inboxId); return localVarResp.getData(); } /** * Get email count in inbox * * @param inboxId Id of inbox that emails belongs to (required) * @return ApiResponse<CountDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
*/ public ApiResponse getInboxEmailCountWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getInboxEmailCountValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get email count in inbox (asynchronously) * * @param inboxId Id of inbox that emails belongs to (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 getInboxEmailCountAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxEmailCountValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxEmailsPaginated * @param inboxId Id of inbox that emails belongs to (required) * @param page Optional page index in inbox emails list pagination (optional, default to 0) * @param size Optional page size in inbox emails list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by received after given date time (optional) * @param before Optional filter by received before given date time (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 getInboxEmailsPaginatedCall(UUID inboxId, 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 = "/inboxes/{inboxId}/emails/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 (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 getInboxEmailsPaginatedValidateBeforeCall(UUID inboxId, Integer page, Integer size, String sort, 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 getInboxEmailsPaginated(Async)"); } okhttp3.Call localVarCall = getInboxEmailsPaginatedCall(inboxId, page, size, sort, since, before, _callback); return localVarCall; } /** * Get inbox emails paginated * Get a paginated list of emails in an inbox. Does not hold connections open. * @param inboxId Id of inbox that emails belongs to (required) * @param page Optional page index in inbox emails list pagination (optional, default to 0) * @param size Optional page size in inbox emails list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by received after given date time (optional) * @param before Optional filter by received before given date time (optional) * @return PageEmailPreview * @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 PageEmailPreview getInboxEmailsPaginated(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getInboxEmailsPaginatedWithHttpInfo(inboxId, page, size, sort, since, before); return localVarResp.getData(); } /** * Get inbox emails paginated * Get a paginated list of emails in an inbox. Does not hold connections open. * @param inboxId Id of inbox that emails belongs to (required) * @param page Optional page index in inbox emails list pagination (optional, default to 0) * @param size Optional page size in inbox emails list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by received after given date time (optional) * @param before Optional filter by received before given date time (optional) * @return ApiResponse<PageEmailPreview> * @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 getInboxEmailsPaginatedWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getInboxEmailsPaginatedValidateBeforeCall(inboxId, page, size, sort, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get inbox emails paginated (asynchronously) * Get a paginated list of emails in an inbox. Does not hold connections open. * @param inboxId Id of inbox that emails belongs to (required) * @param page Optional page index in inbox emails list pagination (optional, default to 0) * @param size Optional page size in inbox emails list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by received after given date time (optional) * @param before Optional filter by received before given date time (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 getInboxEmailsPaginatedAsync(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxEmailsPaginatedValidateBeforeCall(inboxId, page, size, sort, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxIds * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public okhttp3.Call getInboxIdsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/ids"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getInboxIdsValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxIdsCall(_callback); return localVarCall; } /** * Get all inbox IDs * Get list of inbox IDs * @return InboxIdsResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public InboxIdsResult getInboxIds() throws ApiException { ApiResponse localVarResp = getInboxIdsWithHttpInfo(); return localVarResp.getData(); } /** * Get all inbox IDs * Get list of inbox IDs * @return ApiResponse<InboxIdsResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public ApiResponse getInboxIdsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getInboxIdsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get all inbox IDs (asynchronously) * Get list of inbox IDs * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public okhttp3.Call getInboxIdsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxIdsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxSentEmails * @param inboxId (required) * @param page Optional page index in inbox sent email list pagination (optional, default to 0) * @param size Optional page size in inbox sent email list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional sent email search (optional) * @param since Optional filter by sent after given date time (optional) * @param before Optional filter by sent before given date time (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 -
* @deprecated */ @Deprecated public okhttp3.Call getInboxSentEmailsCall(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}/sent" .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); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getInboxSentEmailsValidateBeforeCall(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 getInboxSentEmails(Async)"); } okhttp3.Call localVarCall = getInboxSentEmailsCall(inboxId, page, size, sort, searchFilter, since, before, _callback); return localVarCall; } /** * Get Inbox Sent Emails * Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. * @param inboxId (required) * @param page Optional page index in inbox sent email list pagination (optional, default to 0) * @param size Optional page size in inbox sent email list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional sent email search (optional) * @param since Optional filter by sent after given date time (optional) * @param before Optional filter by sent before given date time (optional) * @return PageSentEmailProjection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public PageSentEmailProjection getInboxSentEmails(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getInboxSentEmailsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); return localVarResp.getData(); } /** * Get Inbox Sent Emails * Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. * @param inboxId (required) * @param page Optional page index in inbox sent email list pagination (optional, default to 0) * @param size Optional page size in inbox sent email list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional sent email search (optional) * @param since Optional filter by sent after given date time (optional) * @param before Optional filter by sent before given date time (optional) * @return ApiResponse<PageSentEmailProjection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public ApiResponse getInboxSentEmailsWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getInboxSentEmailsValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Inbox Sent Emails (asynchronously) * Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. * @param inboxId (required) * @param page Optional page index in inbox sent email list pagination (optional, default to 0) * @param size Optional page size in inbox sent email list pagination (optional, default to 20) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param searchFilter Optional sent email search (optional) * @param since Optional filter by sent after given date time (optional) * @param before Optional filter by sent before given date time (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 -
* @deprecated */ @Deprecated public okhttp3.Call getInboxSentEmailsAsync(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxSentEmailsValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxTags * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public okhttp3.Call getInboxTagsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/tags"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getInboxTagsValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxTagsCall(_callback); return localVarCall; } /** * Get inbox tags * Get all inbox tags * @return List<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public List getInboxTags() throws ApiException { ApiResponse> localVarResp = getInboxTagsWithHttpInfo(); return localVarResp.getData(); } /** * Get inbox tags * Get all inbox tags * @return ApiResponse<List<String>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public ApiResponse> getInboxTagsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getInboxTagsValidateBeforeCall(null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get inbox tags (asynchronously) * Get all inbox tags * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public okhttp3.Call getInboxTagsAsync(final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getInboxTagsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getInboxes * @param size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by created after given date time (optional) * @param excludeCatchAllInboxes Optional exclude catch all inboxes (optional) * @param before Optional filter by created before given date time (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 -
* @deprecated */ @Deprecated public okhttp3.Call getInboxesCall(Integer size, String sort, OffsetDateTime since, Boolean excludeCatchAllInboxes, OffsetDateTime before, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 (excludeCatchAllInboxes != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("excludeCatchAllInboxes", excludeCatchAllInboxes)); } 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); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getInboxesValidateBeforeCall(Integer size, String sort, OffsetDateTime since, Boolean excludeCatchAllInboxes, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getInboxesCall(size, sort, since, excludeCatchAllInboxes, before, _callback); return localVarCall; } /** * List Inboxes and email addresses * List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. * @param size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by created after given date time (optional) * @param excludeCatchAllInboxes Optional exclude catch all inboxes (optional) * @param before Optional filter by created before given date time (optional) * @return List<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
200 OK -
* @deprecated */ @Deprecated public List getInboxes(Integer size, String sort, OffsetDateTime since, Boolean excludeCatchAllInboxes, OffsetDateTime before) throws ApiException { ApiResponse> localVarResp = getInboxesWithHttpInfo(size, sort, since, excludeCatchAllInboxes, before); return localVarResp.getData(); } /** * List Inboxes and email addresses * List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. * @param size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by created after given date time (optional) * @param excludeCatchAllInboxes Optional exclude catch all inboxes (optional) * @param before Optional filter by created before given date time (optional) * @return ApiResponse<List<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
200 OK -
* @deprecated */ @Deprecated public ApiResponse> getInboxesWithHttpInfo(Integer size, String sort, OffsetDateTime since, Boolean excludeCatchAllInboxes, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getInboxesValidateBeforeCall(size, sort, since, excludeCatchAllInboxes, before, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Inboxes and email addresses (asynchronously) * List the inboxes you have created. Note use of the more advanced `getAllInboxes` is recommended and allows paginated access using a limit and sort parameter. * @param size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated `getAllEmails` for larger queries. (optional, default to 100) * @param sort Optional createdAt sort direction ASC or DESC (optional, default to ASC) * @param since Optional filter by created after given date time (optional) * @param excludeCatchAllInboxes Optional exclude catch all inboxes (optional) * @param before Optional filter by created before given date time (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 -
* @deprecated */ @Deprecated public okhttp3.Call getInboxesAsync(Integer size, String sort, OffsetDateTime since, Boolean excludeCatchAllInboxes, OffsetDateTime before, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getInboxesValidateBeforeCall(size, sort, since, excludeCatchAllInboxes, before, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLatestEmailInInbox * @param inboxId ID of the inbox you want to get the latest email from (required) * @param timeoutMillis Timeout milliseconds to wait for latest email (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 getLatestEmailInInboxCall(UUID inboxId, Long timeoutMillis, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/getLatestEmail"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (inboxId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxId", inboxId)); } if (timeoutMillis != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutMillis", timeoutMillis)); } 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 getLatestEmailInInboxValidateBeforeCall(UUID inboxId, Long timeoutMillis, 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 getLatestEmailInInbox(Async)"); } // verify the required parameter 'timeoutMillis' is set if (timeoutMillis == null) { throw new ApiException("Missing the required parameter 'timeoutMillis' when calling getLatestEmailInInbox(Async)"); } okhttp3.Call localVarCall = getLatestEmailInInboxCall(inboxId, timeoutMillis, _callback); return localVarCall; } /** * Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. * Get the newest email in an inbox or wait for one to arrive * @param inboxId ID of the inbox you want to get the latest email from (required) * @param timeoutMillis Timeout milliseconds to wait for latest email (required) * @return Email * @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 Email getLatestEmailInInbox(UUID inboxId, Long timeoutMillis) throws ApiException { ApiResponse localVarResp = getLatestEmailInInboxWithHttpInfo(inboxId, timeoutMillis); return localVarResp.getData(); } /** * Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. * Get the newest email in an inbox or wait for one to arrive * @param inboxId ID of the inbox you want to get the latest email from (required) * @param timeoutMillis Timeout milliseconds to wait for latest email (required) * @return ApiResponse<Email> * @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 getLatestEmailInInboxWithHttpInfo(UUID inboxId, Long timeoutMillis) throws ApiException { okhttp3.Call localVarCall = getLatestEmailInInboxValidateBeforeCall(inboxId, timeoutMillis, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet. (asynchronously) * Get the newest email in an inbox or wait for one to arrive * @param inboxId ID of the inbox you want to get the latest email from (required) * @param timeoutMillis Timeout milliseconds to wait for latest email (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 getLatestEmailInInboxAsync(UUID inboxId, Long timeoutMillis, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLatestEmailInInboxValidateBeforeCall(inboxId, timeoutMillis, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getOrganizationInboxes * @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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (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 -
* @deprecated */ @Deprecated public okhttp3.Call getOrganizationInboxesCall(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/organization"; 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); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getOrganizationInboxesValidateBeforeCall(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrganizationInboxesCall(page, size, sort, searchFilter, since, before, _callback); return localVarCall; } /** * List Organization Inboxes Paginated * List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). * @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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @return PageOrganizationInboxProjection * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public PageOrganizationInboxProjection getOrganizationInboxes(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getOrganizationInboxesWithHttpInfo(page, size, sort, searchFilter, since, before); return localVarResp.getData(); } /** * List Organization Inboxes Paginated * List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). * @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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @return ApiResponse<PageOrganizationInboxProjection> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 OK -
* @deprecated */ @Deprecated public ApiResponse getOrganizationInboxesWithHttpInfo(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getOrganizationInboxesValidateBeforeCall(page, size, sort, searchFilter, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Organization Inboxes Paginated (asynchronously) * List organization inboxes in paginated form. These are inboxes created with `allowTeamAccess` flag enabled. Organization inboxes are `readOnly` for non-admin users. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). * @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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (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 -
* @deprecated */ @Deprecated public okhttp3.Call getOrganizationInboxesAsync(Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrganizationInboxesValidateBeforeCall(page, size, sort, searchFilter, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getScheduledJob * @param jobId (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 getScheduledJobCall(UUID jobId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/scheduled-jobs/{jobId}" .replaceAll("\\{" + "jobId" + "\\}", localVarApiClient.escapeString(jobId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getScheduledJobValidateBeforeCall(UUID jobId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'jobId' is set if (jobId == null) { throw new ApiException("Missing the required parameter 'jobId' when calling getScheduledJob(Async)"); } okhttp3.Call localVarCall = getScheduledJobCall(jobId, _callback); return localVarCall; } /** * Get a scheduled email job * Get a scheduled email job details. * @param jobId (required) * @return ScheduledJobDto * @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 ScheduledJobDto getScheduledJob(UUID jobId) throws ApiException { ApiResponse localVarResp = getScheduledJobWithHttpInfo(jobId); return localVarResp.getData(); } /** * Get a scheduled email job * Get a scheduled email job details. * @param jobId (required) * @return ApiResponse<ScheduledJobDto> * @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 getScheduledJobWithHttpInfo(UUID jobId) throws ApiException { okhttp3.Call localVarCall = getScheduledJobValidateBeforeCall(jobId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a scheduled email job (asynchronously) * Get a scheduled email job details. * @param jobId (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 getScheduledJobAsync(UUID jobId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getScheduledJobValidateBeforeCall(jobId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getScheduledJobsByInboxId * @param inboxId (required) * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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 getScheduledJobsByInboxIdCall(UUID inboxId, 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 = "/inboxes/{inboxId}/scheduled-jobs" .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 (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 getScheduledJobsByInboxIdValidateBeforeCall(UUID inboxId, Integer page, Integer size, String sort, 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 getScheduledJobsByInboxId(Async)"); } okhttp3.Call localVarCall = getScheduledJobsByInboxIdCall(inboxId, page, size, sort, since, before, _callback); return localVarCall; } /** * Get all scheduled email sending jobs for the inbox * Schedule sending of emails using scheduled jobs. * @param inboxId (required) * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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 PageScheduledJobs * @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 PageScheduledJobs getScheduledJobsByInboxId(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = getScheduledJobsByInboxIdWithHttpInfo(inboxId, page, size, sort, since, before); return localVarResp.getData(); } /** * Get all scheduled email sending jobs for the inbox * Schedule sending of emails using scheduled jobs. * @param inboxId (required) * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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<PageScheduledJobs> * @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 getScheduledJobsByInboxIdWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = getScheduledJobsByInboxIdValidateBeforeCall(inboxId, page, size, sort, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get all scheduled email sending jobs for the inbox (asynchronously) * Schedule sending of emails using scheduled jobs. * @param inboxId (required) * @param page Optional page index in scheduled job list pagination (optional, default to 0) * @param size Optional page size in scheduled job 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 getScheduledJobsByInboxIdAsync(UUID inboxId, Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getScheduledJobsByInboxIdValidateBeforeCall(inboxId, page, size, sort, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getSmtpAccess * @param inboxId Inbox 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 getSmtpAccessCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/smtp-access"; 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, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSmtpAccessValidateBeforeCall(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSmtpAccessCall(inboxId, _callback); return localVarCall; } /** * * Get SMTP access usernames and passwords * @param inboxId Inbox ID (optional) * @return SmtpAccessDetails * @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 SmtpAccessDetails getSmtpAccess(UUID inboxId) throws ApiException { ApiResponse localVarResp = getSmtpAccessWithHttpInfo(inboxId); return localVarResp.getData(); } /** * * Get SMTP access usernames and passwords * @param inboxId Inbox ID (optional) * @return ApiResponse<SmtpAccessDetails> * @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 getSmtpAccessWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = getSmtpAccessValidateBeforeCall(inboxId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Get SMTP access usernames and passwords * @param inboxId Inbox 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 getSmtpAccessAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSmtpAccessValidateBeforeCall(inboxId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for isEmailAddressAvailable * @param emailAddress (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 isEmailAddressAvailableCall(String emailAddress, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/available"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (emailAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("emailAddress", emailAddress)); } 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 isEmailAddressAvailableValidateBeforeCall(String emailAddress, final ApiCallback _callback) throws ApiException { // verify the required parameter 'emailAddress' is set if (emailAddress == null) { throw new ApiException("Missing the required parameter 'emailAddress' when calling isEmailAddressAvailable(Async)"); } okhttp3.Call localVarCall = isEmailAddressAvailableCall(emailAddress, _callback); return localVarCall; } /** * Is email address available * Returns whether an email address is available * @param emailAddress (required) * @return EmailAvailableResult * @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 EmailAvailableResult isEmailAddressAvailable(String emailAddress) throws ApiException { ApiResponse localVarResp = isEmailAddressAvailableWithHttpInfo(emailAddress); return localVarResp.getData(); } /** * Is email address available * Returns whether an email address is available * @param emailAddress (required) * @return ApiResponse<EmailAvailableResult> * @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 isEmailAddressAvailableWithHttpInfo(String emailAddress) throws ApiException { okhttp3.Call localVarCall = isEmailAddressAvailableValidateBeforeCall(emailAddress, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Is email address available (asynchronously) * Returns whether an email address is available * @param emailAddress (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 isEmailAddressAvailableAsync(String emailAddress, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = isEmailAddressAvailableValidateBeforeCall(emailAddress, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listInboxRulesets * @param inboxId (required) * @param page Optional page index in inbox ruleset list pagination (optional, default to 0) * @param size Optional page size in inbox ruleset 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (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 listInboxRulesetsCall(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}/rulesets" .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 listInboxRulesetsValidateBeforeCall(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 listInboxRulesets(Async)"); } okhttp3.Call localVarCall = listInboxRulesetsCall(inboxId, page, size, sort, searchFilter, since, before, _callback); return localVarCall; } /** * List inbox rulesets * List all rulesets attached to an inbox * @param inboxId (required) * @param page Optional page index in inbox ruleset list pagination (optional, default to 0) * @param size Optional page size in inbox ruleset 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @return PageInboxRulesetDto * @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 PageInboxRulesetDto listInboxRulesets(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = listInboxRulesetsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); return localVarResp.getData(); } /** * List inbox rulesets * List all rulesets attached to an inbox * @param inboxId (required) * @param page Optional page index in inbox ruleset list pagination (optional, default to 0) * @param size Optional page size in inbox ruleset 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @return ApiResponse<PageInboxRulesetDto> * @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 listInboxRulesetsWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = listInboxRulesetsValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List inbox rulesets (asynchronously) * List all rulesets attached to an inbox * @param inboxId (required) * @param page Optional page index in inbox ruleset list pagination (optional, default to 0) * @param size Optional page size in inbox ruleset 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (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 listInboxRulesetsAsync(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listInboxRulesetsValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listInboxTrackingPixels * @param inboxId (required) * @param page Optional page index in inbox tracking pixel list pagination (optional, default to 0) * @param size Optional page size in inbox tracking pixel 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (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 listInboxTrackingPixelsCall(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}/tracking-pixels" .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 listInboxTrackingPixelsValidateBeforeCall(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 listInboxTrackingPixels(Async)"); } okhttp3.Call localVarCall = listInboxTrackingPixelsCall(inboxId, page, size, sort, searchFilter, since, before, _callback); return localVarCall; } /** * List inbox tracking pixels * List all tracking pixels sent from an inbox * @param inboxId (required) * @param page Optional page index in inbox tracking pixel list pagination (optional, default to 0) * @param size Optional page size in inbox tracking pixel 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @return PageTrackingPixelProjection * @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 PageTrackingPixelProjection listInboxTrackingPixels(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { ApiResponse localVarResp = listInboxTrackingPixelsWithHttpInfo(inboxId, page, size, sort, searchFilter, since, before); return localVarResp.getData(); } /** * List inbox tracking pixels * List all tracking pixels sent from an inbox * @param inboxId (required) * @param page Optional page index in inbox tracking pixel list pagination (optional, default to 0) * @param size Optional page size in inbox tracking pixel 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (optional) * @return ApiResponse<PageTrackingPixelProjection> * @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 listInboxTrackingPixelsWithHttpInfo(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException { okhttp3.Call localVarCall = listInboxTrackingPixelsValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List inbox tracking pixels (asynchronously) * List all tracking pixels sent from an inbox * @param inboxId (required) * @param page Optional page index in inbox tracking pixel list pagination (optional, default to 0) * @param size Optional page size in inbox tracking pixel 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 Optional filter by created after given date time (optional) * @param before Optional filter by created before given date time (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 listInboxTrackingPixelsAsync(UUID inboxId, Integer page, Integer size, String sort, String searchFilter, OffsetDateTime since, OffsetDateTime before, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listInboxTrackingPixelsValidateBeforeCall(inboxId, page, size, sort, searchFilter, since, before, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchInboxes * @param searchInboxesOptions (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 searchInboxesCall(SearchInboxesOptions searchInboxesOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = searchInboxesOptions; // create path and map variables String localVarPath = "/inboxes/search"; 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 searchInboxesValidateBeforeCall(SearchInboxesOptions searchInboxesOptions, final ApiCallback _callback) throws ApiException { // verify the required parameter 'searchInboxesOptions' is set if (searchInboxesOptions == null) { throw new ApiException("Missing the required parameter 'searchInboxesOptions' when calling searchInboxes(Async)"); } okhttp3.Call localVarCall = searchInboxesCall(searchInboxesOptions, _callback); return localVarCall; } /** * Search all inboxes and return matching inboxes * Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @param searchInboxesOptions (required) * @return PageInboxProjection * @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 PageInboxProjection searchInboxes(SearchInboxesOptions searchInboxesOptions) throws ApiException { ApiResponse localVarResp = searchInboxesWithHttpInfo(searchInboxesOptions); return localVarResp.getData(); } /** * Search all inboxes and return matching inboxes * Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @param searchInboxesOptions (required) * @return ApiResponse<PageInboxProjection> * @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 searchInboxesWithHttpInfo(SearchInboxesOptions searchInboxesOptions) throws ApiException { okhttp3.Call localVarCall = searchInboxesValidateBeforeCall(searchInboxesOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Search all inboxes and return matching inboxes (asynchronously) * Search inboxes and return in paginated form. The results are available on the `content` property of the returned object. This method allows for page index (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative `getInboxes` method returns a full list of inboxes but is limited to 100 results. * @param searchInboxesOptions (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 searchInboxesAsync(SearchInboxesOptions searchInboxesOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchInboxesValidateBeforeCall(searchInboxesOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for sendEmail * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (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 sendEmailCall(UUID inboxId, SendEmailOptions sendEmailOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = sendEmailOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}" .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 sendEmailValidateBeforeCall(UUID inboxId, SendEmailOptions sendEmailOptions, 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 sendEmail(Async)"); } // verify the required parameter 'sendEmailOptions' is set if (sendEmailOptions == null) { throw new ApiException("Missing the required parameter 'sendEmailOptions' when calling sendEmail(Async)"); } okhttp3.Call localVarCall = sendEmailCall(inboxId, sendEmailOptions, _callback); return localVarCall; } /** * Send Email * Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (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 sendEmail(UUID inboxId, SendEmailOptions sendEmailOptions) throws ApiException { sendEmailWithHttpInfo(inboxId, sendEmailOptions); } /** * Send Email * Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (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 sendEmailWithHttpInfo(UUID inboxId, SendEmailOptions sendEmailOptions) throws ApiException { okhttp3.Call localVarCall = sendEmailValidateBeforeCall(inboxId, sendEmailOptions, null); return localVarApiClient.execute(localVarCall); } /** * Send Email (asynchronously) * Send an email from an inbox's email address. The request body should contain the `SendEmailOptions` that include recipients, attachments, body etc. See `SendEmailOptions` for all available properties. Note the `inboxId` refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method `sendEmailAndConfirm`. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (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 sendEmailAsync(UUID inboxId, SendEmailOptions sendEmailOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendEmailValidateBeforeCall(inboxId, sendEmailOptions, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for sendEmailAndConfirm * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (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 sendEmailAndConfirmCall(UUID inboxId, SendEmailOptions sendEmailOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = sendEmailOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/confirm" .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 sendEmailAndConfirmValidateBeforeCall(UUID inboxId, SendEmailOptions sendEmailOptions, 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 sendEmailAndConfirm(Async)"); } // verify the required parameter 'sendEmailOptions' is set if (sendEmailOptions == null) { throw new ApiException("Missing the required parameter 'sendEmailOptions' when calling sendEmailAndConfirm(Async)"); } okhttp3.Call localVarCall = sendEmailAndConfirmCall(inboxId, sendEmailOptions, _callback); return localVarCall; } /** * Send email and return sent confirmation * Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (required) * @return SentEmailDto * @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 SentEmailDto sendEmailAndConfirm(UUID inboxId, SendEmailOptions sendEmailOptions) throws ApiException { ApiResponse localVarResp = sendEmailAndConfirmWithHttpInfo(inboxId, sendEmailOptions); return localVarResp.getData(); } /** * Send email and return sent confirmation * Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (required) * @return ApiResponse<SentEmailDto> * @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 sendEmailAndConfirmWithHttpInfo(UUID inboxId, SendEmailOptions sendEmailOptions) throws ApiException { okhttp3.Call localVarCall = sendEmailAndConfirmValidateBeforeCall(inboxId, sendEmailOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Send email and return sent confirmation (asynchronously) * Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (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 sendEmailAndConfirmAsync(UUID inboxId, SendEmailOptions sendEmailOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendEmailAndConfirmValidateBeforeCall(inboxId, sendEmailOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for sendEmailWithQueue * @param inboxId ID of the inbox you want to send the email from (required) * @param validateBeforeEnqueue Validate before adding to queue (required) * @param sendEmailOptions (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 sendEmailWithQueueCall(UUID inboxId, Boolean validateBeforeEnqueue, SendEmailOptions sendEmailOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = sendEmailOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/with-queue" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (validateBeforeEnqueue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("validateBeforeEnqueue", validateBeforeEnqueue)); } 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 sendEmailWithQueueValidateBeforeCall(UUID inboxId, Boolean validateBeforeEnqueue, SendEmailOptions sendEmailOptions, 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 sendEmailWithQueue(Async)"); } // verify the required parameter 'validateBeforeEnqueue' is set if (validateBeforeEnqueue == null) { throw new ApiException("Missing the required parameter 'validateBeforeEnqueue' when calling sendEmailWithQueue(Async)"); } // verify the required parameter 'sendEmailOptions' is set if (sendEmailOptions == null) { throw new ApiException("Missing the required parameter 'sendEmailOptions' when calling sendEmailWithQueue(Async)"); } okhttp3.Call localVarCall = sendEmailWithQueueCall(inboxId, validateBeforeEnqueue, sendEmailOptions, _callback); return localVarCall; } /** * Send email with queue * Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. * @param inboxId ID of the inbox you want to send the email from (required) * @param validateBeforeEnqueue Validate before adding to queue (required) * @param sendEmailOptions (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 sendEmailWithQueue(UUID inboxId, Boolean validateBeforeEnqueue, SendEmailOptions sendEmailOptions) throws ApiException { sendEmailWithQueueWithHttpInfo(inboxId, validateBeforeEnqueue, sendEmailOptions); } /** * Send email with queue * Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. * @param inboxId ID of the inbox you want to send the email from (required) * @param validateBeforeEnqueue Validate before adding to queue (required) * @param sendEmailOptions (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 sendEmailWithQueueWithHttpInfo(UUID inboxId, Boolean validateBeforeEnqueue, SendEmailOptions sendEmailOptions) throws ApiException { okhttp3.Call localVarCall = sendEmailWithQueueValidateBeforeCall(inboxId, validateBeforeEnqueue, sendEmailOptions, null); return localVarApiClient.execute(localVarCall); } /** * Send email with queue (asynchronously) * Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue. * @param inboxId ID of the inbox you want to send the email from (required) * @param validateBeforeEnqueue Validate before adding to queue (required) * @param sendEmailOptions (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 sendEmailWithQueueAsync(UUID inboxId, Boolean validateBeforeEnqueue, SendEmailOptions sendEmailOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendEmailWithQueueValidateBeforeCall(inboxId, validateBeforeEnqueue, sendEmailOptions, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for sendSmtpEnvelope * @param inboxId ID of the inbox you want to send the email from (required) * @param sendSMTPEnvelopeOptions (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 sendSmtpEnvelopeCall(UUID inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = sendSMTPEnvelopeOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/smtp-envelope" .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 sendSmtpEnvelopeValidateBeforeCall(UUID inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, 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 sendSmtpEnvelope(Async)"); } // verify the required parameter 'sendSMTPEnvelopeOptions' is set if (sendSMTPEnvelopeOptions == null) { throw new ApiException("Missing the required parameter 'sendSMTPEnvelopeOptions' when calling sendSmtpEnvelope(Async)"); } okhttp3.Call localVarCall = sendSmtpEnvelopeCall(inboxId, sendSMTPEnvelopeOptions, _callback); return localVarCall; } /** * Send email using an SMTP mail envelope and message body and return sent confirmation * Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendSMTPEnvelopeOptions (required) * @return SentEmailDto * @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 SentEmailDto sendSmtpEnvelope(UUID inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions) throws ApiException { ApiResponse localVarResp = sendSmtpEnvelopeWithHttpInfo(inboxId, sendSMTPEnvelopeOptions); return localVarResp.getData(); } /** * Send email using an SMTP mail envelope and message body and return sent confirmation * Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendSMTPEnvelopeOptions (required) * @return ApiResponse<SentEmailDto> * @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 sendSmtpEnvelopeWithHttpInfo(UUID inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions) throws ApiException { okhttp3.Call localVarCall = sendSmtpEnvelopeValidateBeforeCall(inboxId, sendSMTPEnvelopeOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Send email using an SMTP mail envelope and message body and return sent confirmation (asynchronously) * Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendSMTPEnvelopeOptions (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 sendSmtpEnvelopeAsync(UUID inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendSmtpEnvelopeValidateBeforeCall(inboxId, sendSMTPEnvelopeOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for sendTestEmail * @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 sendTestEmailCall(UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/inboxes/{inboxId}/send-test-email" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call sendTestEmailValidateBeforeCall(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 sendTestEmail(Async)"); } okhttp3.Call localVarCall = sendTestEmailCall(inboxId, _callback); return localVarCall; } /** * Send a test email to inbox * Send an inbox a test email to test email receiving is working * @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 sendTestEmail(UUID inboxId) throws ApiException { sendTestEmailWithHttpInfo(inboxId); } /** * Send a test email to inbox * Send an inbox a test email to test email receiving is working * @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 sendTestEmailWithHttpInfo(UUID inboxId) throws ApiException { okhttp3.Call localVarCall = sendTestEmailValidateBeforeCall(inboxId, null); return localVarApiClient.execute(localVarCall); } /** * Send a test email to inbox (asynchronously) * Send an inbox a test email to test email receiving is working * @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 sendTestEmailAsync(UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendTestEmailValidateBeforeCall(inboxId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for sendWithSchedule * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (required) * @param sendAtTimestamp Sending timestamp (optional) * @param sendAtNowPlusSeconds Send after n seconds (optional) * @param validateBeforeEnqueue Validate before adding to queue (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 sendWithScheduleCall(UUID inboxId, SendEmailOptions sendEmailOptions, OffsetDateTime sendAtTimestamp, Long sendAtNowPlusSeconds, Boolean validateBeforeEnqueue, final ApiCallback _callback) throws ApiException { Object localVarPostBody = sendEmailOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/with-schedule" .replaceAll("\\{" + "inboxId" + "\\}", localVarApiClient.escapeString(inboxId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (sendAtTimestamp != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendAtTimestamp", sendAtTimestamp)); } if (sendAtNowPlusSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendAtNowPlusSeconds", sendAtNowPlusSeconds)); } if (validateBeforeEnqueue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("validateBeforeEnqueue", validateBeforeEnqueue)); } 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 sendWithScheduleValidateBeforeCall(UUID inboxId, SendEmailOptions sendEmailOptions, OffsetDateTime sendAtTimestamp, Long sendAtNowPlusSeconds, Boolean validateBeforeEnqueue, 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 sendWithSchedule(Async)"); } // verify the required parameter 'sendEmailOptions' is set if (sendEmailOptions == null) { throw new ApiException("Missing the required parameter 'sendEmailOptions' when calling sendWithSchedule(Async)"); } okhttp3.Call localVarCall = sendWithScheduleCall(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue, _callback); return localVarCall; } /** * Send email with with delay or schedule * Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (required) * @param sendAtTimestamp Sending timestamp (optional) * @param sendAtNowPlusSeconds Send after n seconds (optional) * @param validateBeforeEnqueue Validate before adding to queue (optional) * @return ScheduledJobDto * @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 ScheduledJobDto sendWithSchedule(UUID inboxId, SendEmailOptions sendEmailOptions, OffsetDateTime sendAtTimestamp, Long sendAtNowPlusSeconds, Boolean validateBeforeEnqueue) throws ApiException { ApiResponse localVarResp = sendWithScheduleWithHttpInfo(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue); return localVarResp.getData(); } /** * Send email with with delay or schedule * Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (required) * @param sendAtTimestamp Sending timestamp (optional) * @param sendAtNowPlusSeconds Send after n seconds (optional) * @param validateBeforeEnqueue Validate before adding to queue (optional) * @return ApiResponse<ScheduledJobDto> * @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 sendWithScheduleWithHttpInfo(UUID inboxId, SendEmailOptions sendEmailOptions, OffsetDateTime sendAtTimestamp, Long sendAtNowPlusSeconds, Boolean validateBeforeEnqueue) throws ApiException { okhttp3.Call localVarCall = sendWithScheduleValidateBeforeCall(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Send email with with delay or schedule (asynchronously) * Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending. * @param inboxId ID of the inbox you want to send the email from (required) * @param sendEmailOptions (required) * @param sendAtTimestamp Sending timestamp (optional) * @param sendAtNowPlusSeconds Send after n seconds (optional) * @param validateBeforeEnqueue Validate before adding to queue (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 sendWithScheduleAsync(UUID inboxId, SendEmailOptions sendEmailOptions, OffsetDateTime sendAtTimestamp, Long sendAtNowPlusSeconds, Boolean validateBeforeEnqueue, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = sendWithScheduleValidateBeforeCall(inboxId, sendEmailOptions, sendAtTimestamp, sendAtNowPlusSeconds, validateBeforeEnqueue, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for setInboxFavourited * @param inboxId ID of inbox to set favourite state (required) * @param setInboxFavouritedOptions (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 setInboxFavouritedCall(UUID inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = setInboxFavouritedOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}/favourite" .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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setInboxFavouritedValidateBeforeCall(UUID inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, 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 setInboxFavourited(Async)"); } // verify the required parameter 'setInboxFavouritedOptions' is set if (setInboxFavouritedOptions == null) { throw new ApiException("Missing the required parameter 'setInboxFavouritedOptions' when calling setInboxFavourited(Async)"); } okhttp3.Call localVarCall = setInboxFavouritedCall(inboxId, setInboxFavouritedOptions, _callback); return localVarCall; } /** * Set inbox favourited state * Set and return new favourite state for an inbox * @param inboxId ID of inbox to set favourite state (required) * @param setInboxFavouritedOptions (required) * @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
200 OK -
*/ public InboxDto setInboxFavourited(UUID inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions) throws ApiException { ApiResponse localVarResp = setInboxFavouritedWithHttpInfo(inboxId, setInboxFavouritedOptions); return localVarResp.getData(); } /** * Set inbox favourited state * Set and return new favourite state for an inbox * @param inboxId ID of inbox to set favourite state (required) * @param setInboxFavouritedOptions (required) * @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
200 OK -
*/ public ApiResponse setInboxFavouritedWithHttpInfo(UUID inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions) throws ApiException { okhttp3.Call localVarCall = setInboxFavouritedValidateBeforeCall(inboxId, setInboxFavouritedOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Set inbox favourited state (asynchronously) * Set and return new favourite state for an inbox * @param inboxId ID of inbox to set favourite state (required) * @param setInboxFavouritedOptions (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 setInboxFavouritedAsync(UUID inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setInboxFavouritedValidateBeforeCall(inboxId, setInboxFavouritedOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateImapAccess * @param updateImapAccessOptions (required) * @param inboxId Inbox 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
204 No Content -
*/ public okhttp3.Call updateImapAccessCall(UpdateImapAccessOptions updateImapAccessOptions, UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = updateImapAccessOptions; // create path and map variables String localVarPath = "/inboxes/imap-access"; 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 = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateImapAccessValidateBeforeCall(UpdateImapAccessOptions updateImapAccessOptions, UUID inboxId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'updateImapAccessOptions' is set if (updateImapAccessOptions == null) { throw new ApiException("Missing the required parameter 'updateImapAccessOptions' when calling updateImapAccess(Async)"); } okhttp3.Call localVarCall = updateImapAccessCall(updateImapAccessOptions, inboxId, _callback); return localVarCall; } /** * * Update IMAP access usernames and passwords * @param updateImapAccessOptions (required) * @param inboxId Inbox ID (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 updateImapAccess(UpdateImapAccessOptions updateImapAccessOptions, UUID inboxId) throws ApiException { updateImapAccessWithHttpInfo(updateImapAccessOptions, inboxId); } /** * * Update IMAP access usernames and passwords * @param updateImapAccessOptions (required) * @param inboxId Inbox ID (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 updateImapAccessWithHttpInfo(UpdateImapAccessOptions updateImapAccessOptions, UUID inboxId) throws ApiException { okhttp3.Call localVarCall = updateImapAccessValidateBeforeCall(updateImapAccessOptions, inboxId, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update IMAP access usernames and passwords * @param updateImapAccessOptions (required) * @param inboxId Inbox 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
204 No Content -
*/ public okhttp3.Call updateImapAccessAsync(UpdateImapAccessOptions updateImapAccessOptions, UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateImapAccessValidateBeforeCall(updateImapAccessOptions, inboxId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateInbox * @param inboxId (required) * @param updateInboxOptions (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 updateInboxCall(UUID inboxId, UpdateInboxOptions updateInboxOptions, final ApiCallback _callback) throws ApiException { Object localVarPostBody = updateInboxOptions; // create path and map variables String localVarPath = "/inboxes/{inboxId}" .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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateInboxValidateBeforeCall(UUID inboxId, UpdateInboxOptions updateInboxOptions, 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 updateInbox(Async)"); } // verify the required parameter 'updateInboxOptions' is set if (updateInboxOptions == null) { throw new ApiException("Missing the required parameter 'updateInboxOptions' when calling updateInbox(Async)"); } okhttp3.Call localVarCall = updateInboxCall(inboxId, updateInboxOptions, _callback); return localVarCall; } /** * Update Inbox. Change name and description. Email address is not editable. * Update editable fields on an inbox * @param inboxId (required) * @param updateInboxOptions (required) * @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
200 OK -
*/ public InboxDto updateInbox(UUID inboxId, UpdateInboxOptions updateInboxOptions) throws ApiException { ApiResponse localVarResp = updateInboxWithHttpInfo(inboxId, updateInboxOptions); return localVarResp.getData(); } /** * Update Inbox. Change name and description. Email address is not editable. * Update editable fields on an inbox * @param inboxId (required) * @param updateInboxOptions (required) * @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
200 OK -
*/ public ApiResponse updateInboxWithHttpInfo(UUID inboxId, UpdateInboxOptions updateInboxOptions) throws ApiException { okhttp3.Call localVarCall = updateInboxValidateBeforeCall(inboxId, updateInboxOptions, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update Inbox. Change name and description. Email address is not editable. (asynchronously) * Update editable fields on an inbox * @param inboxId (required) * @param updateInboxOptions (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 updateInboxAsync(UUID inboxId, UpdateInboxOptions updateInboxOptions, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateInboxValidateBeforeCall(inboxId, updateInboxOptions, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateSmtpAccess * @param updateSmtpAccessOptions (required) * @param inboxId Inbox 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
204 No Content -
*/ public okhttp3.Call updateSmtpAccessCall(UpdateSmtpAccessOptions updateSmtpAccessOptions, UUID inboxId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = updateSmtpAccessOptions; // create path and map variables String localVarPath = "/inboxes/smtp-access"; 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 = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "API_KEY" }; return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateSmtpAccessValidateBeforeCall(UpdateSmtpAccessOptions updateSmtpAccessOptions, UUID inboxId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'updateSmtpAccessOptions' is set if (updateSmtpAccessOptions == null) { throw new ApiException("Missing the required parameter 'updateSmtpAccessOptions' when calling updateSmtpAccess(Async)"); } okhttp3.Call localVarCall = updateSmtpAccessCall(updateSmtpAccessOptions, inboxId, _callback); return localVarCall; } /** * * Update SMTP access usernames and passwords * @param updateSmtpAccessOptions (required) * @param inboxId Inbox ID (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 updateSmtpAccess(UpdateSmtpAccessOptions updateSmtpAccessOptions, UUID inboxId) throws ApiException { updateSmtpAccessWithHttpInfo(updateSmtpAccessOptions, inboxId); } /** * * Update SMTP access usernames and passwords * @param updateSmtpAccessOptions (required) * @param inboxId Inbox ID (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 updateSmtpAccessWithHttpInfo(UpdateSmtpAccessOptions updateSmtpAccessOptions, UUID inboxId) throws ApiException { okhttp3.Call localVarCall = updateSmtpAccessValidateBeforeCall(updateSmtpAccessOptions, inboxId, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update SMTP access usernames and passwords * @param updateSmtpAccessOptions (required) * @param inboxId Inbox 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
204 No Content -
*/ public okhttp3.Call updateSmtpAccessAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, UUID inboxId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateSmtpAccessValidateBeforeCall(updateSmtpAccessOptions, inboxId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy