public class TemplateControllerApi extends Object
Constructor and Description |
---|
TemplateControllerApi() |
TemplateControllerApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
TemplateDto |
createTemplate(CreateTemplateOptions createTemplateOptions)
Create a Template
Create an email template with variables for use with templated transactional emails.
|
okhttp3.Call |
createTemplateAsync(CreateTemplateOptions createTemplateOptions,
ApiCallback<TemplateDto> _callback)
Create a Template (asynchronously)
Create an email template with variables for use with templated transactional emails.
|
okhttp3.Call |
createTemplateCall(CreateTemplateOptions createTemplateOptions,
ApiCallback _callback)
Build call for createTemplate
|
ApiResponse<TemplateDto> |
createTemplateWithHttpInfo(CreateTemplateOptions createTemplateOptions)
Create a Template
Create an email template with variables for use with templated transactional emails.
|
void |
deleteTemplate(UUID templateId)
Delete email template
Delete template
|
okhttp3.Call |
deleteTemplateAsync(UUID templateId,
ApiCallback<Void> _callback)
Delete email template (asynchronously)
Delete template
|
okhttp3.Call |
deleteTemplateCall(UUID templateId,
ApiCallback _callback)
Build call for deleteTemplate
|
ApiResponse<Void> |
deleteTemplateWithHttpInfo(UUID templateId)
Delete email template
Delete template
|
PageTemplateProjection |
getAllTemplates(Integer page,
Integer size,
String sort,
OffsetDateTime since,
OffsetDateTime before)
List templates
Get all templates in paginated format
|
okhttp3.Call |
getAllTemplatesAsync(Integer page,
Integer size,
String sort,
OffsetDateTime since,
OffsetDateTime before,
ApiCallback<PageTemplateProjection> _callback)
List templates (asynchronously)
Get all templates in paginated format
|
okhttp3.Call |
getAllTemplatesCall(Integer page,
Integer size,
String sort,
OffsetDateTime since,
OffsetDateTime before,
ApiCallback _callback)
Build call for getAllTemplates
|
ApiResponse<PageTemplateProjection> |
getAllTemplatesWithHttpInfo(Integer page,
Integer size,
String sort,
OffsetDateTime since,
OffsetDateTime before)
List templates
Get all templates in paginated format
|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
TemplateDto |
getTemplate(UUID templateId)
Get template
Get email template
|
okhttp3.Call |
getTemplateAsync(UUID templateId,
ApiCallback<TemplateDto> _callback)
Get template (asynchronously)
Get email template
|
okhttp3.Call |
getTemplateCall(UUID templateId,
ApiCallback _callback)
Build call for getTemplate
|
String |
getTemplatePreviewHtml(UUID templateId)
Get template preview HTML
Get email template preview with passed template variables in HTML format for browsers.
|
okhttp3.Call |
getTemplatePreviewHtmlAsync(UUID templateId,
ApiCallback<String> _callback)
Get template preview HTML (asynchronously)
Get email template preview with passed template variables in HTML format for browsers.
|
okhttp3.Call |
getTemplatePreviewHtmlCall(UUID templateId,
ApiCallback _callback)
Build call for getTemplatePreviewHtml
|
ApiResponse<String> |
getTemplatePreviewHtmlWithHttpInfo(UUID templateId)
Get template preview HTML
Get email template preview with passed template variables in HTML format for browsers.
|
TemplatePreview |
getTemplatePreviewJson(UUID templateId)
Get template preview Json
Get email template preview with passed template variables in JSON format.
|
okhttp3.Call |
getTemplatePreviewJsonAsync(UUID templateId,
ApiCallback<TemplatePreview> _callback)
Get template preview Json (asynchronously)
Get email template preview with passed template variables in JSON format.
|
okhttp3.Call |
getTemplatePreviewJsonCall(UUID templateId,
ApiCallback _callback)
Build call for getTemplatePreviewJson
|
ApiResponse<TemplatePreview> |
getTemplatePreviewJsonWithHttpInfo(UUID templateId)
Get template preview Json
Get email template preview with passed template variables in JSON format.
|
List<TemplateProjection> |
getTemplates()
List templates
Get all templates
|
okhttp3.Call |
getTemplatesAsync(ApiCallback<List<TemplateProjection>> _callback)
List templates (asynchronously)
Get all templates
|
okhttp3.Call |
getTemplatesCall(ApiCallback _callback)
Build call for getTemplates
|
ApiResponse<List<TemplateProjection>> |
getTemplatesWithHttpInfo()
List templates
Get all templates
|
ApiResponse<TemplateDto> |
getTemplateWithHttpInfo(UUID templateId)
Get template
Get email template
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
TemplateDto |
updateTemplate(UUID templateId,
CreateTemplateOptions createTemplateOptions)
Update template
Update email template
|
okhttp3.Call |
updateTemplateAsync(UUID templateId,
CreateTemplateOptions createTemplateOptions,
ApiCallback<TemplateDto> _callback)
Update template (asynchronously)
Update email template
|
okhttp3.Call |
updateTemplateCall(UUID templateId,
CreateTemplateOptions createTemplateOptions,
ApiCallback _callback)
Build call for updateTemplate
|
ApiResponse<TemplateDto> |
updateTemplateWithHttpInfo(UUID templateId,
CreateTemplateOptions createTemplateOptions)
Update template
Update email template
|
public TemplateControllerApi()
public TemplateControllerApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call createTemplateCall(CreateTemplateOptions createTemplateOptions, ApiCallback _callback) throws ApiException
createTemplateOptions
- (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
public TemplateDto createTemplate(CreateTemplateOptions createTemplateOptions) throws ApiException
createTemplateOptions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
201 | Created | - |
public ApiResponse<TemplateDto> createTemplateWithHttpInfo(CreateTemplateOptions createTemplateOptions) throws ApiException
createTemplateOptions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
201 | Created | - |
public okhttp3.Call createTemplateAsync(CreateTemplateOptions createTemplateOptions, ApiCallback<TemplateDto> _callback) throws ApiException
createTemplateOptions
- (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
public okhttp3.Call deleteTemplateCall(UUID templateId, ApiCallback _callback) throws ApiException
templateId
- Template ID (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
204 | No Content | - |
public void deleteTemplate(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
204 | No Content | - |
public ApiResponse<Void> deleteTemplateWithHttpInfo(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
204 | No Content | - |
public okhttp3.Call deleteTemplateAsync(UUID templateId, ApiCallback<Void> _callback) throws ApiException
templateId
- Template ID (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
204 | No Content | - |
public okhttp3.Call getAllTemplatesCall(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, ApiCallback _callback) throws ApiException
page
- Optional page index in list pagination (optional, default to 0)size
- Optional page size in list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)since
- Filter by created at after the given timestamp (optional)before
- Filter by created at before the given timestamp (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public PageTemplateProjection getAllTemplates(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException
page
- Optional page index in list pagination (optional, default to 0)size
- Optional page size in list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)since
- Filter by created at after the given timestamp (optional)before
- Filter by created at before the given timestamp (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<PageTemplateProjection> getAllTemplatesWithHttpInfo(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before) throws ApiException
page
- Optional page index in list pagination (optional, default to 0)size
- Optional page size in list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)since
- Filter by created at after the given timestamp (optional)before
- Filter by created at before the given timestamp (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getAllTemplatesAsync(Integer page, Integer size, String sort, OffsetDateTime since, OffsetDateTime before, ApiCallback<PageTemplateProjection> _callback) throws ApiException
page
- Optional page index in list pagination (optional, default to 0)size
- Optional page size in list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)since
- Filter by created at after the given timestamp (optional)before
- Filter by created at before the given timestamp (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplateCall(UUID templateId, ApiCallback _callback) throws ApiException
templateId
- Template ID (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public TemplateDto getTemplate(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<TemplateDto> getTemplateWithHttpInfo(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplateAsync(UUID templateId, ApiCallback<TemplateDto> _callback) throws ApiException
templateId
- Template ID (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplatePreviewHtmlCall(UUID templateId, ApiCallback _callback) throws ApiException
templateId
- Template ID (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public String getTemplatePreviewHtml(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<String> getTemplatePreviewHtmlWithHttpInfo(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplatePreviewHtmlAsync(UUID templateId, ApiCallback<String> _callback) throws ApiException
templateId
- Template ID (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplatePreviewJsonCall(UUID templateId, ApiCallback _callback) throws ApiException
templateId
- Template ID (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public TemplatePreview getTemplatePreviewJson(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<TemplatePreview> getTemplatePreviewJsonWithHttpInfo(UUID templateId) throws ApiException
templateId
- Template ID (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplatePreviewJsonAsync(UUID templateId, ApiCallback<TemplatePreview> _callback) throws ApiException
templateId
- Template ID (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplatesCall(ApiCallback _callback) throws ApiException
_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public List<TemplateProjection> getTemplates() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public ApiResponse<List<TemplateProjection>> getTemplatesWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call getTemplatesAsync(ApiCallback<List<TemplateProjection>> _callback) throws ApiException
_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public okhttp3.Call updateTemplateCall(UUID templateId, CreateTemplateOptions createTemplateOptions, ApiCallback _callback) throws ApiException
templateId
- Template ID (required)createTemplateOptions
- (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
public TemplateDto updateTemplate(UUID templateId, CreateTemplateOptions createTemplateOptions) throws ApiException
templateId
- Template ID (required)createTemplateOptions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
201 | Created | - |
public ApiResponse<TemplateDto> updateTemplateWithHttpInfo(UUID templateId, CreateTemplateOptions createTemplateOptions) throws ApiException
templateId
- Template ID (required)createTemplateOptions
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
201 | Created | - |
public okhttp3.Call updateTemplateAsync(UUID templateId, CreateTemplateOptions createTemplateOptions, ApiCallback<TemplateDto> _callback) throws ApiException
templateId
- Template ID (required)createTemplateOptions
- (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
Copyright © 2023. All rights reserved.