public class OapiSmartbotMsgPushRequest extends BaseTaobaoRequest<OapiSmartbotMsgPushResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
OapiSmartbotMsgPushRequest.ActionCard
卡片消息
|
static class |
OapiSmartbotMsgPushRequest.BtnJson
使用独立跳转ActionCard样式时的按钮列表;必须与btn_orientation同时设置
|
static class |
OapiSmartbotMsgPushRequest.Markdown
markdown消息
|
static class |
OapiSmartbotMsgPushRequest.Msg
消息体,具体见文档
|
static class |
OapiSmartbotMsgPushRequest.Text
文本消息
|
headerMap, order, session, targetAppKey, timestamp, topMixParams, udfParams| Constructor and Description |
|---|
OapiSmartbotMsgPushRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
客户端参数检查,减少服务端无效调用。
|
String |
getApiMethodName()
获取TOP的API名称。
|
String |
getChatIdList() |
String |
getMsg() |
Class<OapiSmartbotMsgPushResponse> |
getResponseClass()
获取具体响应实现类的定义。
|
Map<String,String> |
getTextParams()
获取所有的Key-Value形式的文本请求参数集合。其中:
Key: 请求参数名
Value: 请求参数值
|
Boolean |
getToAllUser() |
String |
getTopApiCallType()
获取API调用方式
|
String |
getTopHttpMethod()
获取Http method,例如GET,POST
|
String |
getTopResponseType()
API对应的响应格式,包含top(top标准),qimen(奇门1.0标准),qimen2(奇门2.0标准)
|
String |
getUserIdList() |
void |
setChatIdList(String chatIdList) |
void |
setHttpMethod(String httpMethod) |
void |
setMsg(OapiSmartbotMsgPushRequest.Msg msg) |
void |
setMsg(String msg) |
void |
setToAllUser(Boolean toAllUser) |
void |
setTopHttpMethod(String topHttpMethod) |
void |
setTopResponseType(String topResponseType) |
void |
setUserIdList(String userIdList) |
getBatchApiOrder, getBatchApiSession, getHeaderMap, getTargetAppKey, getTimestamp, getTopApiFormat, getTopApiVersion, getTopContentType, getTopMixParams, putHeaderParam, putOtherTextParam, setBatchApiOrder, setBatchApiSession, setHeaderMap, setTargetAppKey, setTimestamp, setTopApiCallType, setTopApiFormat, setTopApiVersion, setTopContentType, setTopMixParamspublic void setChatIdList(String chatIdList)
public String getChatIdList()
public void setMsg(String msg)
public void setMsg(OapiSmartbotMsgPushRequest.Msg msg)
public String getMsg()
public void setToAllUser(Boolean toAllUser)
public Boolean getToAllUser()
public void setUserIdList(String userIdList)
public String getUserIdList()
public String getApiMethodName()
TaobaoRequestgetApiMethodName in interface TaobaoRequest<OapiSmartbotMsgPushResponse>getApiMethodName in class BaseTaobaoRequest<OapiSmartbotMsgPushResponse>public String getTopResponseType()
TaobaoRequestgetTopResponseType in interface TaobaoRequest<OapiSmartbotMsgPushResponse>getTopResponseType in class BaseTaobaoRequest<OapiSmartbotMsgPushResponse>public void setTopResponseType(String topResponseType)
setTopResponseType in interface TaobaoRequest<OapiSmartbotMsgPushResponse>setTopResponseType in class BaseTaobaoRequest<OapiSmartbotMsgPushResponse>public String getTopApiCallType()
TaobaoRequestgetTopApiCallType in interface TaobaoRequest<OapiSmartbotMsgPushResponse>getTopApiCallType in class BaseTaobaoRequest<OapiSmartbotMsgPushResponse>public String getTopHttpMethod()
TaobaoRequestgetTopHttpMethod in interface TaobaoRequest<OapiSmartbotMsgPushResponse>getTopHttpMethod in class BaseTaobaoRequest<OapiSmartbotMsgPushResponse>public void setTopHttpMethod(String topHttpMethod)
setTopHttpMethod in interface TaobaoRequest<OapiSmartbotMsgPushResponse>setTopHttpMethod in class BaseTaobaoRequest<OapiSmartbotMsgPushResponse>public void setHttpMethod(String httpMethod)
public Map<String,String> getTextParams()
TaobaoRequestpublic Class<OapiSmartbotMsgPushResponse> getResponseClass()
TaobaoRequestpublic void check()
throws ApiRuleException
TaobaoRequestApiRuleExceptionCopyright © 2021. All rights reserved.