public interface IImageXService extends IBaseService
| 限定符和类型 | 方法和说明 |
|---|---|
ApplyUploadResponse |
applyImageUpload(ApplyUploadRequest applyUploadRequest)
Apply upload image.
|
CommitUploadResponse |
commitImageUpload(CommitUploadRequest commitUploadRequest)
Commit upload image.
|
DeleteImageResp |
deleteImages(DeleteImageReq req)
Delete images.
|
SecurityToken2 |
getUploadSts2(List<String> serviceIds)
Get image upload sts2 auth with default expire time (1 hour).
|
SecurityToken2 |
getUploadSts2WithExpire(List<String> serviceIds,
long expire)
Get image upload sts2 auth.
|
String |
getUploadToken(Map<String,String> params)
Get image upload token.
|
CommitUploadResponse |
uploadImages(ApplyUploadRequest request,
List<byte[]> imageDatas)
Upload image data.
|
getAccessKey, getSecretKey, getSignUrl, json, post, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2ApplyUploadResponse applyImageUpload(ApplyUploadRequest applyUploadRequest) throws Exception
applyUploadRequest - the apply upload requestException - the exceptionCommitUploadResponse commitImageUpload(CommitUploadRequest commitUploadRequest) throws Exception
commitUploadRequest - the commit upload requestException - the exceptionCommitUploadResponse uploadImages(ApplyUploadRequest request, List<byte[]> imageDatas) throws Exception
request - the apply upload requestimageDatas - image data arrayException - the exceptionString getUploadToken(Map<String,String> params) throws Exception
params - the paramsException - the exceptionSecurityToken2 getUploadSts2(List<String> serviceIds) throws Exception
serviceIds - service id list allowed to upload image toException - the exceptionSecurityToken2 getUploadSts2WithExpire(List<String> serviceIds, long expire) throws Exception
serviceIds - service id list allowed to upload image toexpire - expire time in millisecondsException - the exceptionDeleteImageResp deleteImages(DeleteImageReq req) throws Exception
req - delete image reqException - the exceptionCopyright © 2021. All rights reserved.