public class MarketApiClient
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
SIGN_METHOD_HMAC
HMAC签名方式
|
static java.lang.String |
SIGN_METHOD_MD5
MD5签名方式
|
构造器和说明 |
---|
MarketApiClient(java.lang.String appKey,
java.lang.String appSecret) |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
directUploadOSS(java.io.InputStream is,
java.lang.String name,
java.lang.String token)
直接上传OOS
|
<T extends BaseMarketApiResponse> |
execute(MarketApiRequest<T> marketApiRequest) |
<T extends BaseMarketApiResponse> |
execute(MarketApiRequest<T> marketApiRequest,
java.lang.String signMethod) |
static MarketServiceToken |
fetchServiceToken(java.lang.String url)
获帆软市场服务token
|
public static final java.lang.String SIGN_METHOD_MD5
public static final java.lang.String SIGN_METHOD_HMAC
public <T extends BaseMarketApiResponse> T execute(MarketApiRequest<T> marketApiRequest) throws ApiException
ApiException
public <T extends BaseMarketApiResponse> T execute(MarketApiRequest<T> marketApiRequest, java.lang.String signMethod) throws ApiException
ApiException
@Nonnull public static MarketServiceToken fetchServiceToken(java.lang.String url)
public static boolean directUploadOSS(java.io.InputStream is, java.lang.String name, java.lang.String token) throws java.io.IOException
is
- 文件流name
- 文件名token
- 上传凭证java.io.IOException
- 上传失败