dingtalk.corp.smartdevice.receptionist.pushinfo (智能前台消息推送)

智能前台开放部分功能区块,区块内的显示信息由isv基于企业不同推送展示消息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
microapp_agent_id Number 必须 12 微应用agentID
desc_template String 必须 visitor.index.template 智能前台信息展示模板ID,需要向智能硬件团队申请
desc_content String 必须 {"count":"0"} 展示模板需要的变量数据

响应参数

名称 类型 示例值 描述
result DingOpenResult result
  • └ ding_open_errcode
  • Number
  • 0
  • dingOpenErrcode
  • └ error_msg
  • String
  • ok
  • errorMsg
  • └ result
  • Boolean
  • true
  • 推送是否成功
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest");
CorpSmartdeviceReceptionistPushinfoRequest req = new CorpSmartdeviceReceptionistPushinfoRequest();
req.setMicroappAgentId(12L);
req.setDescTemplate("visitor.index.template");
req.setDescContent("{\"count\":\"0\"}");
CorpSmartdeviceReceptionistPushinfoResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<dingtalk_corp_smartdevice_receptionist_pushinfo_response>
    <result>
        <ding_open_errcode>0</ding_open_errcode>
        <error_msg>ok</error_msg>
        <result>true</result>
        <success>true</success>
    </result>
</dingtalk_corp_smartdevice_receptionist_pushinfo_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部