public class AttachmentControllerApi extends Object
| Constructor and Description |
|---|
AttachmentControllerApi() |
AttachmentControllerApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
List<String> |
uploadAttachment(UploadAttachmentOptions uploadOptions)
Upload an attachment for sending using base64 file encoding.
|
okhttp3.Call |
uploadAttachmentAsync(UploadAttachmentOptions uploadOptions,
ApiCallback<List<String>> _callback)
Upload an attachment for sending using base64 file encoding.
|
List<String> |
uploadAttachmentBytes(String string,
String filename,
byte[] byteArray)
Upload an attachment for sending using file byte stream input octet stream.
|
okhttp3.Call |
uploadAttachmentBytesAsync(String string,
String filename,
byte[] byteArray,
ApiCallback<List<String>> _callback)
Upload an attachment for sending using file byte stream input octet stream.
|
okhttp3.Call |
uploadAttachmentBytesCall(String string,
String filename,
byte[] byteArray,
ApiCallback _callback)
Build call for uploadAttachmentBytes
|
ApiResponse<List<String>> |
uploadAttachmentBytesWithHttpInfo(String string,
String filename,
byte[] byteArray)
Upload an attachment for sending using file byte stream input octet stream.
|
okhttp3.Call |
uploadAttachmentCall(UploadAttachmentOptions uploadOptions,
ApiCallback _callback)
Build call for uploadAttachment
|
ApiResponse<List<String>> |
uploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadOptions)
Upload an attachment for sending using base64 file encoding.
|
List<String> |
uploadMultipartForm(File file,
String contentType,
String filename,
String xFilename)
Upload an attachment for sending using a Multipart Form request.
|
okhttp3.Call |
uploadMultipartFormAsync(File file,
String contentType,
String filename,
String xFilename,
ApiCallback<List<String>> _callback)
Upload an attachment for sending using a Multipart Form request.
|
okhttp3.Call |
uploadMultipartFormCall(File file,
String contentType,
String filename,
String xFilename,
ApiCallback _callback)
Build call for uploadMultipartForm
|
ApiResponse<List<String>> |
uploadMultipartFormWithHttpInfo(File file,
String contentType,
String filename,
String xFilename)
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 okhttp3.Call uploadAttachmentCall(UploadAttachmentOptions uploadOptions, ApiCallback _callback) throws ApiException
uploadOptions - uploadOptions (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public List<String> uploadAttachment(UploadAttachmentOptions uploadOptions) throws ApiException
uploadOptions - uploadOptions (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<List<String>> uploadAttachmentWithHttpInfo(UploadAttachmentOptions uploadOptions) throws ApiException
uploadOptions - uploadOptions (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call uploadAttachmentAsync(UploadAttachmentOptions uploadOptions, ApiCallback<List<String>> _callback) throws ApiException
uploadOptions - uploadOptions (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 object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call uploadAttachmentBytesCall(String string, String filename, byte[] byteArray, ApiCallback _callback) throws ApiException
string - Optional contentType for file. For instance `application/pdf` (optional)filename - Optional filename to save upload with (optional)byteArray - Byte array request body (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public List<String> uploadAttachmentBytes(String string, String filename, byte[] byteArray) throws ApiException
string - Optional contentType for file. For instance `application/pdf` (optional)filename - Optional filename to save upload with (optional)byteArray - Byte array request body (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<List<String>> uploadAttachmentBytesWithHttpInfo(String string, String filename, byte[] byteArray) throws ApiException
string - Optional contentType for file. For instance `application/pdf` (optional)filename - Optional filename to save upload with (optional)byteArray - Byte array request body (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call uploadAttachmentBytesAsync(String string, String filename, byte[] byteArray, ApiCallback<List<String>> _callback) throws ApiException
string - Optional contentType for file. For instance `application/pdf` (optional)filename - Optional filename to save upload with (optional)byteArray - Byte array request body (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 object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call uploadMultipartFormCall(File file, String contentType, String filename, String xFilename, ApiCallback _callback) throws ApiException
file - file (required)contentType - Optional content type of attachment (optional)filename - Optional name of file (optional)xFilename - Optional content type header of attachment (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public List<String> uploadMultipartForm(File file, String contentType, String filename, String xFilename) throws ApiException
file - file (required)contentType - Optional content type of attachment (optional)filename - Optional name of file (optional)xFilename - Optional content type header of attachment (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public ApiResponse<List<String>> uploadMultipartFormWithHttpInfo(File file, String contentType, String filename, String xFilename) throws ApiException
file - file (required)contentType - Optional content type of attachment (optional)filename - Optional name of file (optional)xFilename - Optional content type header of attachment (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
public okhttp3.Call uploadMultipartFormAsync(File file, String contentType, String filename, String xFilename, ApiCallback<List<String>> _callback) throws ApiException
file - file (required)contentType - Optional content type of attachment (optional)filename - Optional name of file (optional)xFilename - Optional content type header of attachment (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 object| Status Code | Description | Response Headers |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
Copyright © 2021. All rights reserved.