public class OapiGettokenRequest extends BaseTaobaoRequest<OapiGettokenResponse>
headerMap, order, session, targetAppKey, timestamp, topMixParams, udfParams| Constructor and Description |
|---|
OapiGettokenRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getApiMethodName()
获取TOP的API名称。
|
String |
getAppkey() |
String |
getAppsecret() |
String |
getCorpid() |
String |
getCorpsecret() |
Class<OapiGettokenResponse> |
getResponseClass()
获取具体响应实现类的定义。
|
Map<String,String> |
getTextParams()
获取所有的Key-Value形式的文本请求参数集合。其中:
Key: 请求参数名
Value: 请求参数值
|
String |
getTopApiCallType()
获取API调用方式
|
String |
getTopHttpMethod()
获取Http method,例如GET,POST
|
String |
getTopResponseType()
API对应的响应格式,包含top(top标准),qimen(奇门1.0标准),qimen2(奇门2.0标准)
|
void |
setAppkey(String appkey) |
void |
setAppsecret(String appsecret) |
void |
setCorpid(String corpid) |
void |
setCorpsecret(String corpsecret) |
void |
setHttpMethod(String httpMethod) |
void |
setTopHttpMethod(String topHttpMethod) |
void |
setTopResponseType(String topResponseType) |
getBatchApiOrder, getBatchApiSession, getHeaderMap, getTargetAppKey, getTimestamp, getTopApiFormat, getTopApiVersion, getTopContentType, getTopMixParams, putHeaderParam, putOtherTextParam, setBatchApiOrder, setBatchApiSession, setHeaderMap, setTargetAppKey, setTimestamp, setTopApiCallType, setTopApiFormat, setTopApiVersion, setTopContentType, setTopMixParamspublic void setAppkey(String appkey)
public String getAppkey()
public void setAppsecret(String appsecret)
public String getAppsecret()
public void setCorpid(String corpid)
public String getCorpid()
public void setCorpsecret(String corpsecret)
public String getCorpsecret()
public String getApiMethodName()
TaobaoRequestgetApiMethodName in interface TaobaoRequest<OapiGettokenResponse>getApiMethodName in class BaseTaobaoRequest<OapiGettokenResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType in interface TaobaoRequest<OapiGettokenResponse>getTopResponseType in class BaseTaobaoRequest<OapiGettokenResponse>public void setTopResponseType(String topResponseType)
setTopResponseType in interface TaobaoRequest<OapiGettokenResponse>setTopResponseType in class BaseTaobaoRequest<OapiGettokenResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType in interface TaobaoRequest<OapiGettokenResponse>getTopApiCallType in class BaseTaobaoRequest<OapiGettokenResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod in interface TaobaoRequest<OapiGettokenResponse>getTopHttpMethod in class BaseTaobaoRequest<OapiGettokenResponse>public void setTopHttpMethod(String topHttpMethod)
setTopHttpMethod in interface TaobaoRequest<OapiGettokenResponse>setTopHttpMethod in class BaseTaobaoRequest<OapiGettokenResponse>public void setHttpMethod(String httpMethod)
public Map<String,String> getTextParams()
TaobaoRequestpublic Class<OapiGettokenResponse> getResponseClass()
TaobaoRequestpublic void check()
throws ApiRuleException
TaobaoRequestApiRuleExceptionCopyright © 2021. All rights reserved.