public class AlipayOpenSpImageApi extends Object
| 构造器和说明 |
|---|
AlipayOpenSpImageApi() |
AlipayOpenSpImageApi(ApiClient apiClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
AlipayOpenSpImageUploadResponseModel |
upload(File imageContent)
图片上传接口
图片上传
|
AlipayOpenSpImageUploadResponseModel |
upload(File imageContent,
CustomizedParams customizedParams) |
okhttp3.Call |
uploadAsync(File imageContent,
ApiCallback<AlipayOpenSpImageUploadResponseModel> _callback)
图片上传接口 (asynchronously)
图片上传
|
okhttp3.Call |
uploadAsync(File imageContent,
ApiCallback<AlipayOpenSpImageUploadResponseModel> _callback,
CustomizedParams customizedParams) |
okhttp3.Call |
uploadCall(File imageContent,
ApiCallback _callback,
CustomizedParams customizedParams)
Build call for upload
|
ApiResponse<AlipayOpenSpImageUploadResponseModel> |
uploadWithHttpInfo(File imageContent,
CustomizedParams customizedParams)
图片上传接口
图片上传
|
public AlipayOpenSpImageApi()
public AlipayOpenSpImageApi(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 uploadCall(File imageContent, ApiCallback _callback, CustomizedParams customizedParams) throws ApiException
imageContent - (optional)_callback - Callback for upload/download progresscustomizedParams - ApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public AlipayOpenSpImageUploadResponseModel upload(File imageContent) throws ApiException
imageContent - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public AlipayOpenSpImageUploadResponseModel upload(File imageContent, CustomizedParams customizedParams) throws ApiException
ApiExceptionpublic ApiResponse<AlipayOpenSpImageUploadResponseModel> uploadWithHttpInfo(File imageContent, CustomizedParams customizedParams) throws ApiException
imageContent - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call uploadAsync(File imageContent, ApiCallback<AlipayOpenSpImageUploadResponseModel> _callback) throws ApiException
imageContent - (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 |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call uploadAsync(File imageContent, ApiCallback<AlipayOpenSpImageUploadResponseModel> _callback, CustomizedParams customizedParams) throws ApiException
ApiExceptionCopyright © 2024. All rights reserved.