public class OapiSnsGettokenRequest extends BaseTaobaoRequest<OapiSnsGettokenResponse>
headerMap, order, session, targetAppKey, timestamp, topMixParams, udfParams| Constructor and Description |
|---|
OapiSnsGettokenRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getApiMethodName()
获取TOP的API名称。
|
String |
getAppid() |
String |
getAppsecret() |
Class<OapiSnsGettokenResponse> |
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 |
setAppid(String appid) |
void |
setAppsecret(String appsecret) |
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 setAppid(String appid)
public String getAppid()
public void setAppsecret(String appsecret)
public String getAppsecret()
public String getApiMethodName()
TaobaoRequestgetApiMethodName in interface TaobaoRequest<OapiSnsGettokenResponse>getApiMethodName in class BaseTaobaoRequest<OapiSnsGettokenResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType in interface TaobaoRequest<OapiSnsGettokenResponse>getTopResponseType in class BaseTaobaoRequest<OapiSnsGettokenResponse>public void setTopResponseType(String topResponseType)
setTopResponseType in interface TaobaoRequest<OapiSnsGettokenResponse>setTopResponseType in class BaseTaobaoRequest<OapiSnsGettokenResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType in interface TaobaoRequest<OapiSnsGettokenResponse>getTopApiCallType in class BaseTaobaoRequest<OapiSnsGettokenResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod in interface TaobaoRequest<OapiSnsGettokenResponse>getTopHttpMethod in class BaseTaobaoRequest<OapiSnsGettokenResponse>public void setTopHttpMethod(String topHttpMethod)
setTopHttpMethod in interface TaobaoRequest<OapiSnsGettokenResponse>setTopHttpMethod in class BaseTaobaoRequest<OapiSnsGettokenResponse>public void setHttpMethod(String httpMethod)
public Map<String,String> getTextParams()
TaobaoRequestpublic Class<OapiSnsGettokenResponse> getResponseClass()
TaobaoRequestpublic void check()
throws ApiRuleException
TaobaoRequestApiRuleExceptionCopyright © 2021. All rights reserved.