public class AlipayOpenFileApi extends Object
| 构造器和说明 |
|---|
AlipayOpenFileApi() |
AlipayOpenFileApi(ApiClient apiClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
AlipayOpenFileUploadResponseModel |
upload(AlipayOpenFileUploadModel data,
File fileContent)
支付宝文件上传接口
支付宝通用文件上传接口,支付宝开发者可以调用此接口上传文件,文件可以提供给其他业务使用,例如:上传素材(视频/图片),素材可以供给到生活号+/小程序等其他开放应用后正式发布。
|
AlipayOpenFileUploadResponseModel |
upload(AlipayOpenFileUploadModel data,
File fileContent,
CustomizedParams customizedParams) |
okhttp3.Call |
uploadAsync(AlipayOpenFileUploadModel data,
File fileContent,
ApiCallback<AlipayOpenFileUploadResponseModel> _callback)
支付宝文件上传接口 (asynchronously)
支付宝通用文件上传接口,支付宝开发者可以调用此接口上传文件,文件可以提供给其他业务使用,例如:上传素材(视频/图片),素材可以供给到生活号+/小程序等其他开放应用后正式发布。
|
okhttp3.Call |
uploadAsync(AlipayOpenFileUploadModel data,
File fileContent,
ApiCallback<AlipayOpenFileUploadResponseModel> _callback,
CustomizedParams customizedParams) |
okhttp3.Call |
uploadCall(AlipayOpenFileUploadModel data,
File fileContent,
ApiCallback _callback,
CustomizedParams customizedParams)
Build call for upload
|
ApiResponse<AlipayOpenFileUploadResponseModel> |
uploadWithHttpInfo(AlipayOpenFileUploadModel data,
File fileContent,
CustomizedParams customizedParams)
支付宝文件上传接口
支付宝通用文件上传接口,支付宝开发者可以调用此接口上传文件,文件可以提供给其他业务使用,例如:上传素材(视频/图片),素材可以供给到生活号+/小程序等其他开放应用后正式发布。
|
public AlipayOpenFileApi()
public AlipayOpenFileApi(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(AlipayOpenFileUploadModel data, File fileContent, ApiCallback _callback, CustomizedParams customizedParams) throws ApiException
data - (optional)fileContent - (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 AlipayOpenFileUploadResponseModel upload(AlipayOpenFileUploadModel data, File fileContent) throws ApiException
data - (optional)fileContent - (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 AlipayOpenFileUploadResponseModel upload(AlipayOpenFileUploadModel data, File fileContent, CustomizedParams customizedParams) throws ApiException
ApiExceptionpublic ApiResponse<AlipayOpenFileUploadResponseModel> uploadWithHttpInfo(AlipayOpenFileUploadModel data, File fileContent, CustomizedParams customizedParams) throws ApiException
data - (optional)fileContent - (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(AlipayOpenFileUploadModel data, File fileContent, ApiCallback<AlipayOpenFileUploadResponseModel> _callback) throws ApiException
data - (optional)fileContent - (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(AlipayOpenFileUploadModel data, File fileContent, ApiCallback<AlipayOpenFileUploadResponseModel> _callback, CustomizedParams customizedParams) throws ApiException
ApiExceptionCopyright © 2024. All rights reserved.