public class AttachmentControllerApi extends Object
Constructor and Description |
---|
AttachmentControllerApi() |
AttachmentControllerApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
void |
deleteAllAttachments()
Delete all attachments
|
okhttp3.Call |
deleteAllAttachmentsAsync(ApiCallback<Void> _callback)
Delete all attachments (asynchronously)
|
okhttp3.Call |
deleteAllAttachmentsCall(ApiCallback _callback)
Build call for deleteAllAttachments
|
ApiResponse<Void> |
deleteAllAttachmentsWithHttpInfo()
Delete all attachments
|
void |
deleteAttachment(String attachmentId)
Delete an attachment
|
okhttp3.Call |
deleteAttachmentAsync(String attachmentId,
ApiCallback<Void> _callback)
Delete an attachment (asynchronously)
|
okhttp3.Call |
deleteAttachmentCall(String attachmentId,
ApiCallback _callback)
Build call for deleteAttachment
|
ApiResponse<Void> |
deleteAttachmentWithHttpInfo(String attachmentId)
Delete an attachment
|
DownloadAttachmentDto |
downloadAttachmentAsBase64Encoded(String attachmentId)
Get email attachment as base64 encoded string as alternative to binary responses.
|
okhttp3.Call |
downloadAttachmentAsBase64EncodedAsync(String attachmentId,
ApiCallback<DownloadAttachmentDto> _callback)
Get email attachment as base64 encoded string as alternative to binary responses.
|
okhttp3.Call |
downloadAttachmentAsBase64EncodedCall(String attachmentId,
ApiCallback _callback)
Build call for downloadAttachmentAsBase64Encoded
|
ApiResponse<DownloadAttachmentDto> |
downloadAttachmentAsBase64EncodedWithHttpInfo(String attachmentId)
Get email attachment as base64 encoded string as alternative to binary responses.
|
byte[] |
downloadAttachmentAsBytes(String attachmentId)
Download attachments.
|
okhttp3.Call |
downloadAttachmentAsBytesAsync(String attachmentId,
ApiCallback<byte[]> _callback)
Download attachments.
|
okhttp3.Call |
downloadAttachmentAsBytesCall(String attachmentId,
ApiCallback _callback)
Build call for downloadAttachmentAsBytes
|
ApiResponse<byte[]> |
downloadAttachmentAsBytesWithHttpInfo(String attachmentId)
Download attachments.
|
ApiClient |
getApiClient() |
AttachmentEntity |
getAttachment(String attachmentId)
Get an attachment entity
|
okhttp3.Call |
getAttachmentAsync(String attachmentId,
ApiCallback<AttachmentEntity> _callback)
Get an attachment entity (asynchronously)
|
okhttp3.Call |
getAttachmentCall(String attachmentId,
ApiCallback _callback)
Build call for getAttachment
|
AttachmentMetaData |
getAttachmentInfo(String attachmentId)
Get email attachment metadata information
Returns the metadata for an attachment.
|
okhttp3.Call |
getAttachmentInfoAsync(String attachmentId,
ApiCallback<AttachmentMetaData> _callback)
Get email attachment metadata information (asynchronously)
Returns the metadata for an attachment.
|
okhttp3.Call |
getAttachmentInfoCall(String attachmentId,
ApiCallback _callback)
Build call for getAttachmentInfo
|
ApiResponse<AttachmentMetaData> |
getAttachmentInfoWithHttpInfo(String attachmentId)
Get email attachment metadata information
Returns the metadata for an attachment.
|
PageAttachmentEntity |
getAttachments(Integer page,
Integer size,
String sort,
String fileNameFilter,
OffsetDateTime since,
OffsetDateTime before)
Get email attachments
Get all attachments in paginated response.
|
okhttp3.Call |
getAttachmentsAsync(Integer page,
Integer size,
String sort,
String fileNameFilter,
OffsetDateTime since,
OffsetDateTime before,
ApiCallback<PageAttachmentEntity> _callback)
Get email attachments (asynchronously)
Get all attachments in paginated response.
|
okhttp3.Call |
getAttachmentsCall(Integer page,
Integer size,
String sort,
String fileNameFilter,
OffsetDateTime since,
OffsetDateTime before,
ApiCallback _callback)
Build call for getAttachments
|
ApiResponse<PageAttachmentEntity> |
getAttachmentsWithHttpInfo(Integer page,
Integer size,
String sort,
String fileNameFilter,
OffsetDateTime since,
OffsetDateTime before)
Get email attachments
Get all attachments in paginated response.
|
ApiResponse<AttachmentEntity> |
getAttachmentWithHttpInfo(String attachmentId)
Get an attachment entity
|
String |
getCustomBaseUrl() |
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
List<String> |
uploadAttachment(UploadAttachmentOptions uploadAttachmentOptions)
Upload an attachment for sending using base64 file encoding.
|
okhttp3.Call |
uploadAttachmentAsync(UploadAttachmentOptions uploadAttachmentOptions,
ApiCallback<List<String>> _callback)
Upload an attachment for sending using base64 file encoding.
|
List<String> |
uploadAttachmentBytes(UploadAttachmentBytesRequest uploadAttachmentBytesRequest,
String contentType,
String filename)
Upload an attachment for sending using file byte stream input octet stream.
|
okhttp3.Call |
uploadAttachmentBytesAsync(UploadAttachmentBytesRequest uploadAttachmentBytesRequest,
String contentType,
String filename,
ApiCallback<List<String>> _callback)
Upload an attachment for sending using file byte stream input octet stream.
|
okhttp3.Call |
uploadAttachmentBytesCall(UploadAttachmentBytesRequest uploadAttachmentBytesRequest,
String contentType,
String filename,
ApiCallback _callback)
Build call for uploadAttachmentBytes
|
ApiResponse<List<String>> |
uploadAttachmentBytesWithHttpInfo(UploadAttachmentBytesRequest uploadAttachmentBytesRequest,
String contentType,
String filename)
Upload an attachment for sending using file byte stream input octet stream.
|
okhttp3.Call |
uploadAttachmentCall(UploadAttachmentOptions uploadAttachmentOptions,
ApiCallback _callback)
Build call for uploadAttachment
|
ApiResponse<List<String>> |
uploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadAttachmentOptions)
Upload an attachment for sending using base64 file encoding.
|
List<String> |
uploadMultipartForm(String contentType,
String filename,
String xFilename,
UploadMultipartFormRequest uploadMultipartFormRequest)
Upload an attachment for sending using a Multipart Form request.
|
okhttp3.Call |
uploadMultipartFormAsync(String contentType,
String filename,
String xFilename,
UploadMultipartFormRequest uploadMultipartFormRequest,
ApiCallback<List<String>> _callback)
Upload an attachment for sending using a Multipart Form request.
|
okhttp3.Call |
uploadMultipartFormCall(String contentType,
String filename,
String xFilename,
UploadMultipartFormRequest uploadMultipartFormRequest,
ApiCallback _callback)
Build call for uploadMultipartForm
|
ApiResponse<List<String>> |
uploadMultipartFormWithHttpInfo(String contentType,
String filename,
String xFilename,
UploadMultipartFormRequest uploadMultipartFormRequest)
Upload an attachment for sending using a Multipart Form request.
|
public AttachmentControllerApi()
public AttachmentControllerApi(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 deleteAllAttachmentsCall(ApiCallback _callback) throws ApiException
_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
204 | No Content | - |
public void deleteAllAttachments() throws ApiException
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> deleteAllAttachmentsWithHttpInfo() throws ApiException
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 deleteAllAttachmentsAsync(ApiCallback<Void> _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 |
204 | No Content | - |
public okhttp3.Call deleteAttachmentCall(String attachmentId, ApiCallback _callback) throws ApiException
attachmentId
- ID of attachment (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
204 | No Content | - |
public void deleteAttachment(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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> deleteAttachmentWithHttpInfo(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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 deleteAttachmentAsync(String attachmentId, ApiCallback<Void> _callback) throws ApiException
attachmentId
- ID of attachment (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 downloadAttachmentAsBase64EncodedCall(String attachmentId, ApiCallback _callback) throws ApiException
attachmentId
- ID of attachment (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public DownloadAttachmentDto downloadAttachmentAsBase64Encoded(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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<DownloadAttachmentDto> downloadAttachmentAsBase64EncodedWithHttpInfo(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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 downloadAttachmentAsBase64EncodedAsync(String attachmentId, ApiCallback<DownloadAttachmentDto> _callback) throws ApiException
attachmentId
- ID of attachment (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 downloadAttachmentAsBytesCall(String attachmentId, ApiCallback _callback) throws ApiException
attachmentId
- ID of attachment (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
0 | default response | - |
public byte[] downloadAttachmentAsBytes(String attachmentId) throws ApiException
attachmentId
- ID of attachment (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
0 | default response | - |
public ApiResponse<byte[]> downloadAttachmentAsBytesWithHttpInfo(String attachmentId) throws ApiException
attachmentId
- ID of attachment (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
0 | default response | - |
public okhttp3.Call downloadAttachmentAsBytesAsync(String attachmentId, ApiCallback<byte[]> _callback) throws ApiException
attachmentId
- ID of attachment (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 |
0 | default response | - |
public okhttp3.Call getAttachmentCall(String attachmentId, ApiCallback _callback) throws ApiException
attachmentId
- ID of attachment (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public AttachmentEntity getAttachment(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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<AttachmentEntity> getAttachmentWithHttpInfo(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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 getAttachmentAsync(String attachmentId, ApiCallback<AttachmentEntity> _callback) throws ApiException
attachmentId
- ID of attachment (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 getAttachmentInfoCall(String attachmentId, ApiCallback _callback) throws ApiException
attachmentId
- ID of attachment (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | OK | - |
public AttachmentMetaData getAttachmentInfo(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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<AttachmentMetaData> getAttachmentInfoWithHttpInfo(String attachmentId) throws ApiException
attachmentId
- ID of attachment (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 getAttachmentInfoAsync(String attachmentId, ApiCallback<AttachmentMetaData> _callback) throws ApiException
attachmentId
- ID of attachment (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 getAttachmentsCall(Integer page, Integer size, String sort, String fileNameFilter, OffsetDateTime since, OffsetDateTime before, ApiCallback _callback) throws ApiException
page
- Optional page index for list pagination (optional, default to 0)size
- Optional page size for list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)fileNameFilter
- Optional file name and content type search filter (optional)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 PageAttachmentEntity getAttachments(Integer page, Integer size, String sort, String fileNameFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException
page
- Optional page index for list pagination (optional, default to 0)size
- Optional page size for list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)fileNameFilter
- Optional file name and content type search filter (optional)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<PageAttachmentEntity> getAttachmentsWithHttpInfo(Integer page, Integer size, String sort, String fileNameFilter, OffsetDateTime since, OffsetDateTime before) throws ApiException
page
- Optional page index for list pagination (optional, default to 0)size
- Optional page size for list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)fileNameFilter
- Optional file name and content type search filter (optional)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 getAttachmentsAsync(Integer page, Integer size, String sort, String fileNameFilter, OffsetDateTime since, OffsetDateTime before, ApiCallback<PageAttachmentEntity> _callback) throws ApiException
page
- Optional page index for list pagination (optional, default to 0)size
- Optional page size for list pagination (optional, default to 20)sort
- Optional createdAt sort direction ASC or DESC (optional, default to ASC)fileNameFilter
- Optional file name and content type search filter (optional)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 uploadAttachmentCall(UploadAttachmentOptions uploadAttachmentOptions, ApiCallback _callback) throws ApiException
uploadAttachmentOptions
- (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
public List<String> uploadAttachment(UploadAttachmentOptions uploadAttachmentOptions) throws ApiException
uploadAttachmentOptions
- (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<List<String>> uploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadAttachmentOptions) throws ApiException
uploadAttachmentOptions
- (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 uploadAttachmentAsync(UploadAttachmentOptions uploadAttachmentOptions, ApiCallback<List<String>> _callback) throws ApiException
uploadAttachmentOptions
- (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 uploadAttachmentBytesCall(UploadAttachmentBytesRequest uploadAttachmentBytesRequest, String contentType, String filename, ApiCallback _callback) throws ApiException
uploadAttachmentBytesRequest
- (required)contentType
- Optional contentType for file. For instance `application/pdf` (optional)filename
- Optional filename to save upload with (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
public List<String> uploadAttachmentBytes(UploadAttachmentBytesRequest uploadAttachmentBytesRequest, String contentType, String filename) throws ApiException
uploadAttachmentBytesRequest
- (required)contentType
- Optional contentType for file. For instance `application/pdf` (optional)filename
- Optional filename to save upload with (optional)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<List<String>> uploadAttachmentBytesWithHttpInfo(UploadAttachmentBytesRequest uploadAttachmentBytesRequest, String contentType, String filename) throws ApiException
uploadAttachmentBytesRequest
- (required)contentType
- Optional contentType for file. For instance `application/pdf` (optional)filename
- Optional filename to save upload with (optional)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 uploadAttachmentBytesAsync(UploadAttachmentBytesRequest uploadAttachmentBytesRequest, String contentType, String filename, ApiCallback<List<String>> _callback) throws ApiException
uploadAttachmentBytesRequest
- (required)contentType
- Optional contentType for file. For instance `application/pdf` (optional)filename
- Optional filename to save upload with (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 |
201 | Created | - |
public okhttp3.Call uploadMultipartFormCall(String contentType, String filename, String xFilename, UploadMultipartFormRequest uploadMultipartFormRequest, ApiCallback _callback) throws ApiException
contentType
- Optional content type of attachment (optional)filename
- Optional name of file (optional)xFilename
- Optional content type header of attachment (optional)uploadMultipartFormRequest
- (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
201 | Created | - |
public List<String> uploadMultipartForm(String contentType, String filename, String xFilename, UploadMultipartFormRequest uploadMultipartFormRequest) throws ApiException
contentType
- Optional content type of attachment (optional)filename
- Optional name of file (optional)xFilename
- Optional content type header of attachment (optional)uploadMultipartFormRequest
- (optional)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<List<String>> uploadMultipartFormWithHttpInfo(String contentType, String filename, String xFilename, UploadMultipartFormRequest uploadMultipartFormRequest) throws ApiException
contentType
- Optional content type of attachment (optional)filename
- Optional name of file (optional)xFilename
- Optional content type header of attachment (optional)uploadMultipartFormRequest
- (optional)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 uploadMultipartFormAsync(String contentType, String filename, String xFilename, UploadMultipartFormRequest uploadMultipartFormRequest, ApiCallback<List<String>> _callback) throws ApiException
contentType
- Optional content type of attachment (optional)filename
- Optional name of file (optional)xFilename
- Optional content type header of attachment (optional)uploadMultipartFormRequest
- (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 |
201 | Created | - |
Copyright © 2023. All rights reserved.