public class FileApi extends Object
Constructor | Description |
---|---|
FileApi(Configuration configuration) |
Initializes new instance of FileApi
|
FileApi(String appSid,
String appKey) |
Initializes new instance of FileApi
|
Modifier and Type | Method | Description |
---|---|---|
void |
copyFile(CopyFileRequest request) |
Copy file
|
com.squareup.okhttp.Call |
copyFileAsync(CopyFileRequest request,
ApiCallback<Void> callback) |
Copy file (asynchronously)
|
com.squareup.okhttp.Call |
copyFileCall(CopyFileRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for copyFile
|
ApiResponse<Void> |
copyFileWithHttpInfo(CopyFileRequest request) |
Copy file
|
void |
deleteFile(DeleteFileRequest request) |
Delete file
|
com.squareup.okhttp.Call |
deleteFileAsync(DeleteFileRequest request,
ApiCallback<Void> callback) |
Delete file (asynchronously)
|
com.squareup.okhttp.Call |
deleteFileCall(DeleteFileRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for deleteFile
|
ApiResponse<Void> |
deleteFileWithHttpInfo(DeleteFileRequest request) |
Delete file
|
File |
downloadFile(DownloadFileRequest request) |
Download file
|
com.squareup.okhttp.Call |
downloadFileAsync(DownloadFileRequest request,
ApiCallback<File> callback) |
Download file (asynchronously)
|
com.squareup.okhttp.Call |
downloadFileCall(DownloadFileRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for downloadFile
|
ApiResponse<File> |
downloadFileWithHttpInfo(DownloadFileRequest request) |
Download file
|
ApiClient |
getApiClient() |
Gets ApiClient
|
void |
moveFile(MoveFileRequest request) |
Move file
|
com.squareup.okhttp.Call |
moveFileAsync(MoveFileRequest request,
ApiCallback<Void> callback) |
Move file (asynchronously)
|
com.squareup.okhttp.Call |
moveFileCall(MoveFileRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for moveFile
|
ApiResponse<Void> |
moveFileWithHttpInfo(MoveFileRequest request) |
Move file
|
void |
setApiClient(ApiClient apiClient) |
Sets ApiClient
|
FilesUploadResult |
uploadFile(UploadFileRequest request) |
Upload file
|
com.squareup.okhttp.Call |
uploadFileAsync(UploadFileRequest request,
ApiCallback<FilesUploadResult> callback) |
Upload file (asynchronously)
|
com.squareup.okhttp.Call |
uploadFileCall(UploadFileRequest request,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for uploadFile
|
ApiResponse<FilesUploadResult> |
uploadFileWithHttpInfo(UploadFileRequest request) |
Upload file
|
public FileApi(String appSid, String appKey)
appSid
- Application identifier (App SID)appKey
- Application private key (App Key)public FileApi(Configuration configuration)
configuration
- Configuration The configurationpublic ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- The Api clientpublic com.squareup.okhttp.Call copyFileCall(CopyFileRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic void copyFile(CopyFileRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> copyFileWithHttpInfo(CopyFileRequest request) throws ApiException
request
- The request modelApiException
- 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
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteFileCall(DeleteFileRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic void deleteFile(DeleteFileRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteFileWithHttpInfo(DeleteFileRequest request) throws ApiException
request
- The request modelApiException
- 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
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call downloadFileCall(DownloadFileRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic File downloadFile(DownloadFileRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> downloadFileWithHttpInfo(DownloadFileRequest request) throws ApiException
request
- The request modelApiException
- 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
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call moveFileCall(MoveFileRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic void moveFile(MoveFileRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> moveFileWithHttpInfo(MoveFileRequest request) throws ApiException
request
- The request modelApiException
- 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
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call uploadFileCall(UploadFileRequest request, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
request
- The request modelprogressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic FilesUploadResult uploadFile(UploadFileRequest request) throws ApiException
request
- The request modelApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<FilesUploadResult> uploadFileWithHttpInfo(UploadFileRequest request) throws ApiException
request
- The request modelApiException
- 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
- The request modelcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.