public class AssemblyApi extends Object
Constructor and Description |
---|
AssemblyApi() |
AssemblyApi(ApiClient apiClient) |
AssemblyApi(String appSid,
String appKey,
String baseUrl) |
Modifier and Type | Method and Description |
---|---|
File |
assembleDocument(AssembleDocumentRequest request)
Builds a document using document template and XML or JSON data passed in request.
|
com.squareup.okhttp.Call |
assembleDocumentAsync(AssembleDocumentRequest request,
ApiCallback<File> callback)
Builds a document using document template and XML or JSON data passed in request.
|
void |
copyFile(CopyFileRequest request)
Copy file
|
com.squareup.okhttp.Call |
copyFileAsync(CopyFileRequest request,
ApiCallback<Void> callback)
Copy file (asynchronously)
|
void |
copyFolder(CopyFolderRequest request)
Copy folder
|
com.squareup.okhttp.Call |
copyFolderAsync(CopyFolderRequest request,
ApiCallback<Void> callback)
Copy folder (asynchronously)
|
void |
createFolder(CreateFolderRequest request)
Create the folder
|
com.squareup.okhttp.Call |
createFolderAsync(CreateFolderRequest request,
ApiCallback<Void> callback)
Create the folder (asynchronously)
|
void |
deleteFile(DeleteFileRequest request)
Delete file
|
com.squareup.okhttp.Call |
deleteFileAsync(DeleteFileRequest request,
ApiCallback<Void> callback)
Delete file (asynchronously)
|
void |
deleteFolder(DeleteFolderRequest request)
Delete folder
|
com.squareup.okhttp.Call |
deleteFolderAsync(DeleteFolderRequest request,
ApiCallback<Void> callback)
Delete folder (asynchronously)
|
File |
downloadFile(DownloadFileRequest request)
Download file
|
com.squareup.okhttp.Call |
downloadFileAsync(DownloadFileRequest request,
ApiCallback<File> callback)
Download file (asynchronously)
|
ApiClient |
getApiClient() |
FilesList |
getFilesList(GetFilesListRequest request)
Get all files and folders within a folder
|
com.squareup.okhttp.Call |
getFilesListAsync(GetFilesListRequest request,
ApiCallback<FilesList> callback)
Get all files and folders within a folder (asynchronously)
|
FileFormatsResponse |
getSupportedFileFormats(GetSupportedFileFormatsRequest request)
Retrieves list of supported file formats.
|
com.squareup.okhttp.Call |
getSupportedFileFormatsAsync(GetSupportedFileFormatsRequest request,
ApiCallback<FileFormatsResponse> callback)
Retrieves list of supported file formats.
|
void |
moveFile(MoveFileRequest request)
Move file
|
com.squareup.okhttp.Call |
moveFileAsync(MoveFileRequest request,
ApiCallback<Void> callback)
Move file (asynchronously)
|
void |
moveFolder(MoveFolderRequest request)
Move folder
|
com.squareup.okhttp.Call |
moveFolderAsync(MoveFolderRequest request,
ApiCallback<Void> callback)
Move folder (asynchronously)
|
void |
setApiClient(ApiClient apiClient) |
FilesUploadResult |
uploadFile(UploadFileRequest request)
Upload file
|
com.squareup.okhttp.Call |
uploadFileAsync(UploadFileRequest request,
ApiCallback<FilesUploadResult> callback)
Upload file (asynchronously)
|
public AssemblyApi()
public AssemblyApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public File assembleDocument(AssembleDocumentRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call assembleDocumentAsync(AssembleDocumentRequest request, ApiCallback<File> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void copyFile(CopyFileRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call copyFileAsync(CopyFileRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void copyFolder(CopyFolderRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call copyFolderAsync(CopyFolderRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void createFolder(CreateFolderRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createFolderAsync(CreateFolderRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void deleteFile(DeleteFileRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteFileAsync(DeleteFileRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void deleteFolder(DeleteFolderRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteFolderAsync(DeleteFolderRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic File downloadFile(DownloadFileRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call downloadFileAsync(DownloadFileRequest request, ApiCallback<File> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic FilesList getFilesList(GetFilesListRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getFilesListAsync(GetFilesListRequest request, ApiCallback<FilesList> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic FileFormatsResponse getSupportedFileFormats(GetSupportedFileFormatsRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getSupportedFileFormatsAsync(GetSupportedFileFormatsRequest request, ApiCallback<FileFormatsResponse> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void moveFile(MoveFileRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call moveFileAsync(MoveFileRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void moveFolder(MoveFolderRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call moveFolderAsync(MoveFolderRequest request, ApiCallback<Void> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic FilesUploadResult uploadFile(UploadFileRequest request) throws ApiException
request
- Request objectApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call uploadFileAsync(UploadFileRequest request, ApiCallback<FilesUploadResult> callback) throws ApiException
request
- Request objectcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2021. All rights reserved.