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

taobao.tbk.sc.intelligent.recommendation.information.report (淘宝客-服务商-导购智能推荐信息上报API)

淘宝客-服务商-导购智能推荐信息上报API

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query String 必须 一箱牛奶 查询内容
uvid String 必须 dsaqewqe 加密用户标识
robot_id String 可选 eqewq robotId
message_history MessageHistory 可选 历史消息
  • └ type
  • Number
  • 可选
  • 1
  • 发送方 1-机器人 2-用户
  • └ content
  • String
  • 可选
  • xxxx
  • 内容
  • └ time
  • Number
  • 可选
  • 21321321
  • 消息时间戳
biz_type Number 可选 1
  • 默认值:2
  • 业务场景:1返利、2其他,默认2。选择1时使用返利场景专属推荐策略

    响应参数

    名称 类型 示例值 描述
    data RecommendInfoUploadResponse 是否成功
    • └ status
    • Boolean
    • true
    • true成功/false失败
    • └ query_id
    • String
    • dadsadsa
    • 本次查询唯一id
    result_code Number 100 结果code
    biz_error_desc String xxx 错误描述
    result_msg String xxx 结果信息
    biz_error_code Number 404 错误code

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TbkScIntelligentRecommendationInformationReportRequest req = new TbkScIntelligentRecommendationInformationReportRequest();
    req.setQuery("一箱牛奶");
    req.setUvid("dsaqewqe");
    req.setRobotId("eqewq");
    TbkScIntelligentRecommendationInformationReportRequest.MessageHistory obj1 = new TbkScIntelligentRecommendationInformationReportRequest.MessageHistory();
    obj1.setType(1L);
    obj1.setContent("xxxx");
    obj1.setTime(21321321L);
    req.setMessageHistory(obj1);
    req.setBizType(1L);
    TbkScIntelligentRecommendationInformationReportResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tbk_sc_intelligent_recommendation_information_report_response>
        <data>
            <status>true</status>
            <query_id>dadsadsa</query_id>
        </data>
        <result_code>100</result_code>
        <biz_error_desc>xxx</biz_error_desc>
        <result_msg>xxx</result_msg>
        <biz_error_code>404</biz_error_code>
    </tbk_sc_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

    返回
    顶部