public interface IImageXService extends IBaseService
| 限定符和类型 | 方法和说明 |
|---|---|
ApplyImageUploadResponse |
applyImageUpload(ApplyImageUploadRequest applyUploadRequest)
Apply upload image.
|
CommitImageUploadResponse |
commitImageUpload(CommitImageUploadRequest commitUploadRequest)
Commit upload image.
|
DeleteImageResp |
deleteImages(DeleteImageReq req)
Delete images.
|
CommonResponse |
getImageX(String action,
Map<String,String> param)
Request ImageX api with method GET.
|
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.
|
SecurityToken2 |
getUploadSts2WithKeyPtn(List<String> serviceIds,
long expire,
String keyPtn)
Get image upload sts2 auth.
|
String |
getUploadToken(Map<String,String> params)
Get image upload token.
|
CommonResponse |
postImageX(String action,
Map<String,String> param,
Object req)
Request ImageX api with method POST.
|
UpdateImageFilesResponse |
updateImageUrls(UpdateImageFilesRequest req)
Update image urls.
|
CommitImageUploadResponse |
uploadImages(ApplyImageUploadRequest request,
List<byte[]> imageDatas)
Upload image data.
|
getAccessKey, getRegion, getSecretKey, getSignUrl, json, post, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2ApplyImageUploadResponse applyImageUpload(ApplyImageUploadRequest applyUploadRequest) throws Exception
applyUploadRequest - the apply upload requestException - the exceptionCommitImageUploadResponse commitImageUpload(CommitImageUploadRequest commitUploadRequest) throws Exception
commitUploadRequest - the commit upload requestException - the exceptionCommitImageUploadResponse uploadImages(ApplyImageUploadRequest 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 exceptionSecurityToken2 getUploadSts2WithKeyPtn(List<String> serviceIds, long expire, String keyPtn) throws Exception
serviceIds - service id list allowed to upload image toexpire - expire time in millisecondskeyPtn - upload store key pattern, * for no restriction. default to empty.Exception - the exceptionDeleteImageResp deleteImages(DeleteImageReq req) throws Exception
req - delete image reqException - the exceptionUpdateImageFilesResponse updateImageUrls(UpdateImageFilesRequest req) throws Exception
req - update image urls reqException - the exceptionCommonResponse getImageX(String action, Map<String,String> param) throws Exception
action - api action nameparam - api query paramException - the exceptionCopyright © 2021. All rights reserved.