public class UploadAndDownloadFilesApi extends Object
| 构造器和说明 |
|---|
UploadAndDownloadFilesApi() |
UploadAndDownloadFilesApi(ApiClient apiClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiClient |
getApiClient() |
File |
orgNameAppNameChatfilesFilestreamGet(String orgName,
String appName,
String authorization,
String filestream,
String shareSecret)
Download the voice / image file
Important: It should be noted that the need to bring in the HTTP header to return the share-secret and the current login user's token can be downloaded, and pay attention to the implementation of the header accept value needs to be set to application / octet-stream.
|
com.squareup.okhttp.Call |
orgNameAppNameChatfilesFilestreamGetAsync(String orgName,
String appName,
String authorization,
String filestream,
String shareSecret,
ApiCallback<File> callback)
Download the voice / image file (asynchronously)
Important: It should be noted that the need to bring in the HTTP header to return the share-secret and the current login user's token can be downloaded, and pay attention to the implementation of the header accept value needs to be set to application / octet-stream.
|
ApiResponse<File> |
orgNameAppNameChatfilesFilestreamGetWithHttpInfo(String orgName,
String appName,
String authorization,
String filestream,
String shareSecret)
Download the voice / image file
Important: It should be noted that the need to bring in the HTTP header to return the share-secret and the current login user's token can be downloaded, and pay attention to the implementation of the header accept value needs to be set to application / octet-stream.
|
String |
orgNameAppNameChatfilesPost(String orgName,
String appName,
String authorization,
File file,
Boolean restrictAccess)
Upload a File
Warning: File cannot be over 10MB, otherwise will fail.
|
com.squareup.okhttp.Call |
orgNameAppNameChatfilesPostAsync(String orgName,
String appName,
String authorization,
File file,
Boolean restrictAccess,
ApiCallback<String> callback)
Upload a File (asynchronously)
Warning: File cannot be over 10MB, otherwise will fail.
|
ApiResponse<String> |
orgNameAppNameChatfilesPostWithHttpInfo(String orgName,
String appName,
String authorization,
File file,
Boolean restrictAccess)
Upload a File
Warning: File cannot be over 10MB, otherwise will fail.
|
File |
orgNameAppNameChatfilesUuidGet(String orgName,
String appName,
String authorization,
String uuid,
String shareSecret,
Boolean thumbnail)
Download a thumbnail
Important: 1.
|
com.squareup.okhttp.Call |
orgNameAppNameChatfilesUuidGetAsync(String orgName,
String appName,
String authorization,
String uuid,
String shareSecret,
Boolean thumbnail,
ApiCallback<File> callback)
Download a thumbnail (asynchronously)
Important: 1.
|
ApiResponse<File> |
orgNameAppNameChatfilesUuidGetWithHttpInfo(String orgName,
String appName,
String authorization,
String uuid,
String shareSecret,
Boolean thumbnail)
Download a thumbnail
Important: 1.
|
void |
setApiClient(ApiClient apiClient) |
public UploadAndDownloadFilesApi()
public UploadAndDownloadFilesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public File orgNameAppNameChatfilesFilestreamGet(String orgName, String appName, String authorization, String filestream, String shareSecret) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)filestream - uuid, the file identifier, from previous successful uploading reponse (required)shareSecret - share-secret from previous successful uploading response (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> orgNameAppNameChatfilesFilestreamGetWithHttpInfo(String orgName, String appName, String authorization, String filestream, String shareSecret) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)filestream - uuid, the file identifier, from previous successful uploading reponse (required)shareSecret - share-secret from previous successful uploading response (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call orgNameAppNameChatfilesFilestreamGetAsync(String orgName, String appName, String authorization, String filestream, String shareSecret, ApiCallback<File> callback) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)filestream - uuid, the file identifier, from previous successful uploading reponse (required)shareSecret - share-secret from previous successful uploading response (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 objectpublic String orgNameAppNameChatfilesPost(String orgName, String appName, String authorization, File file, Boolean restrictAccess) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)file - (required)restrictAccess - \"restrict-access\" determines whether later the file require \"share-secret\" for access or allow public access. (optional, default to )ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> orgNameAppNameChatfilesPostWithHttpInfo(String orgName, String appName, String authorization, File file, Boolean restrictAccess) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)file - (required)restrictAccess - \"restrict-access\" determines whether later the file require \"share-secret\" for access or allow public access. (optional, default to )ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call orgNameAppNameChatfilesPostAsync(String orgName, String appName, String authorization, File file, Boolean restrictAccess, ApiCallback<String> callback) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)file - (required)restrictAccess - \"restrict-access\" determines whether later the file require \"share-secret\" for access or allow public access. (optional, default to )callback - 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 orgNameAppNameChatfilesUuidGet(String orgName, String appName, String authorization, String uuid, String shareSecret, Boolean thumbnail) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)uuid - uuid, the file identifier, from previous successful uploading reponse (required)shareSecret - share-secret from previous successful uploading response (required)thumbnail - The request will return thumbnail if the tag of ��thumbnail: true�� is explicitly put in the header (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> orgNameAppNameChatfilesUuidGetWithHttpInfo(String orgName, String appName, String authorization, String uuid, String shareSecret, Boolean thumbnail) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)uuid - uuid, the file identifier, from previous successful uploading reponse (required)shareSecret - share-secret from previous successful uploading response (required)thumbnail - The request will return thumbnail if the tag of ��thumbnail: true�� is explicitly put in the header (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call orgNameAppNameChatfilesUuidGetAsync(String orgName, String appName, String authorization, String uuid, String shareSecret, Boolean thumbnail, ApiCallback<File> callback) throws ApiException
orgName - Organization ID (required)appName - Application name (required)authorization - Bearer ${token} (required)uuid - uuid, the file identifier, from previous successful uploading reponse (required)shareSecret - share-secret from previous successful uploading response (required)thumbnail - The request will return thumbnail if the tag of ��thumbnail: true�� is explicitly put in the header (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 objectCopyright © 2017. All rights reserved.