Class EmailApi
java.lang.Object
sendpost_java_sdk.EmailApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsendEmail(EmailMessageObject emailMessageObject) Send Email Use this API to send either a single or batch email.okhttp3.CallsendEmailAsync(EmailMessageObject emailMessageObject, ApiCallback<List<EmailResponse>> _callback) Send Email (asynchronously) Use this API to send either a single or batch email.okhttp3.CallsendEmailCall(EmailMessageObject emailMessageObject, ApiCallback _callback) Build call for sendEmailsendEmailWithHttpInfo(EmailMessageObject emailMessageObject) Send Email Use this API to send either a single or batch email.sendEmailWithTemplate(EmailMessageWithTemplate emailMessageWithTemplate) Send Email With Template Use this API to send an email with a predefined template.okhttp3.CallsendEmailWithTemplateAsync(EmailMessageWithTemplate emailMessageWithTemplate, ApiCallback<List<EmailResponse>> _callback) Send Email With Template (asynchronously) Use this API to send an email with a predefined template.okhttp3.CallsendEmailWithTemplateCall(EmailMessageWithTemplate emailMessageWithTemplate, ApiCallback _callback) Build call for sendEmailWithTemplatesendEmailWithTemplateWithHttpInfo(EmailMessageWithTemplate emailMessageWithTemplate) Send Email With Template Use this API to send an email with a predefined template.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
EmailApi
public EmailApi() -
EmailApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
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. -
-