注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 淘宝客API

taobao.tbk.dg.intelligent.recommendation.information.report (淘宝客-推广者-导购智能推荐信息上报API)

淘宝客-推广者-导购智能推荐信息上报API

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query String 必须 一箱牛奶
  • 默认值:我要一箱牛奶
  • 查询内容
    uvid String 必须 xxxxx 加密用户标识
    message_history_list MessageHistory 可选
  • 默认值:[{"time":1234,"type":1,"content:"今晚打老虎""}]
  • 历史消息
    • └ time
    • Number
    • 可选
    • 321312321
    • 私聊时间戳
    • └ type
    • Number
    • 可选
    • 1
    • 发送方 1-机器人 2-用户
    • └ content
    • String
    • 可选
    • 大dasds
    • 内容
    robot_id String 可选 dsadad 机器人id

    响应参数

    名称 类型 示例值 描述
    status Boolean true true成功/false失败
    query_id String dadsadsa 本次查询唯一id

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TbkDgIntelligentRecommendationInformationReportRequest req = new TbkDgIntelligentRecommendationInformationReportRequest();
    req.setQuery("一箱牛奶");
    req.setUvid("xxxxx");
    TbkDgIntelligentRecommendationInformationReportRequest.MessageHistory obj1 = new TbkDgIntelligentRecommendationInformationReportRequest.MessageHistory();
    obj1.setTime(321312321L);
    obj1.setType(1L);
    obj1.setContent("大dasds");
    req.setMessageHistoryList(obj1);
    req.setRobotId("dsadad");
    TbkDgIntelligentRecommendationInformationReportResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tbk_dg_intelligent_recommendation_information_report_response>
        <status>true</status>
        <query_id>dadsadsa</query_id>
    </tbk_dg_intelligent_recommendation_information_report_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

    返回
    顶部