接口 IImageXService
- 所有超级接口:
IBaseService
- 所有已知实现类:
ImageXServiceImpl
public interface IImageXService extends IBaseService
The interface ImageX service.
-
方法概要
修饰符和类型 方法 说明 ApplyUploadResponseapplyImageUpload(ApplyUploadRequest applyUploadRequest)Apply upload image.CommitUploadResponsecommitImageUpload(CommitUploadRequest commitUploadRequest)Commit upload image.DeleteImageRespdeleteImages(DeleteImageReq req)Delete images.SecurityToken2getUploadSts2(List<String> serviceIds)Get image upload sts2 auth with default expire time (1 hour).SecurityToken2getUploadSts2WithExpire(List<String> serviceIds, long expire)Get image upload sts2 auth.StringgetUploadToken(Map<String,String> params)Get image upload token.CommitUploadResponseuploadImages(ApplyUploadRequest request, List<byte[]> imageDatas)Upload image data.从接口继承的方法 com.bytedanceapi.service.IBaseService
getAccessKey, getSecretKey, getSignUrl, json, post, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2
-
方法详细资料
-
applyImageUpload
Apply upload image.- 参数:
applyUploadRequest- the apply upload request- 返回:
- the apply upload response
- 抛出:
Exception- the exception
-
commitImageUpload
Commit upload image.- 参数:
commitUploadRequest- the commit upload request- 返回:
- the commit upload response
- 抛出:
Exception- the exception
-
uploadImages
CommitUploadResponse uploadImages(ApplyUploadRequest request, List<byte[]> imageDatas) throws ExceptionUpload image data.- 参数:
request- the apply upload requestimageDatas- image data array- 返回:
- the commit upload response
- 抛出:
Exception- the exception
-
getUploadToken
Get image upload token.- 参数:
params- the params- 返回:
- the upload token
- 抛出:
Exception- the exception
-
getUploadSts2
Get image upload sts2 auth with default expire time (1 hour).- 参数:
serviceIds- service id list allowed to upload image to- 返回:
- the upload sts2 auth
- 抛出:
Exception- the exception
-
getUploadSts2WithExpire
Get image upload sts2 auth.- 参数:
serviceIds- service id list allowed to upload image toexpire- expire time in milliseconds- 返回:
- the upload sts2 auth
- 抛出:
Exception- the exception
-
deleteImages
Delete images.- 参数:
req- delete image req- 返回:
- delete image resp
- 抛出:
Exception- the exception
-