Class EmailApi

java.lang.Object
sendpost_java_sdk.EmailApi

public class EmailApi extends Object
  • Constructor Details

    • EmailApi

      public EmailApi()
    • EmailApi

      public EmailApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • sendEmailCall

      public okhttp3.Call sendEmailCall(@Nonnull EmailMessageObject emailMessageObject, ApiCallback _callback) throws ApiException
      Build call for sendEmail
      Parameters:
      emailMessageObject - Email message details (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmail

      public List<EmailResponse> sendEmail(@Nonnull EmailMessageObject emailMessageObject) throws ApiException
      Send Email Use this API to send either a single or batch email.
      Parameters:
      emailMessageObject - Email message details (required)
      Returns:
      List<EmailResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmailWithHttpInfo

      public ApiResponse<List<EmailResponse>> sendEmailWithHttpInfo(@Nonnull EmailMessageObject emailMessageObject) throws ApiException
      Send Email Use this API to send either a single or batch email.
      Parameters:
      emailMessageObject - Email message details (required)
      Returns:
      ApiResponse<List<EmailResponse>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmailAsync

      public okhttp3.Call sendEmailAsync(@Nonnull EmailMessageObject emailMessageObject, ApiCallback<List<EmailResponse>> _callback) throws ApiException
      Send Email (asynchronously) Use this API to send either a single or batch email.
      Parameters:
      emailMessageObject - Email message details (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmailWithTemplateCall

      public okhttp3.Call sendEmailWithTemplateCall(@Nonnull EmailMessageWithTemplate emailMessageWithTemplate, ApiCallback _callback) throws ApiException
      Build call for sendEmailWithTemplate
      Parameters:
      emailMessageWithTemplate - Email message details with template information (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmailWithTemplate

      public List<EmailResponse> sendEmailWithTemplate(@Nonnull EmailMessageWithTemplate emailMessageWithTemplate) throws ApiException
      Send Email With Template Use this API to send an email with a predefined template. This makes it easy to integrate transactional emails with minimal code.
      Parameters:
      emailMessageWithTemplate - Email message details with template information (required)
      Returns:
      List<EmailResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmailWithTemplateWithHttpInfo

      public ApiResponse<List<EmailResponse>> sendEmailWithTemplateWithHttpInfo(@Nonnull EmailMessageWithTemplate emailMessageWithTemplate) throws ApiException
      Send Email With Template Use this API to send an email with a predefined template. This makes it easy to integrate transactional emails with minimal code.
      Parameters:
      emailMessageWithTemplate - Email message details with template information (required)
      Returns:
      ApiResponse<List<EmailResponse>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -
    • sendEmailWithTemplateAsync

      public okhttp3.Call sendEmailWithTemplateAsync(@Nonnull EmailMessageWithTemplate emailMessageWithTemplate, ApiCallback<List<EmailResponse>> _callback) throws ApiException
      Send Email With Template (asynchronously) Use this API to send an email with a predefined template. This makes it easy to integrate transactional emails with minimal code.
      Parameters:
      emailMessageWithTemplate - Email message details with template information (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details:
      Response Details
      Status Code Description Response Headers
      200 A list of email message response objects. -