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

文档中心 > API类目 > 手淘用户增长

taobao.usergrowth.user.ecology.record.report (用户ecology浏览记录上报)

用户ecology浏览记录上报

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
open_id String 必须 xxxx 用户加密后的openid
app_id String 必须 xxx 小程序的app_id信息
biz_type String 必须 "6" 取值来源:6书籍 7 有声读物
out_id String 必须 "xxx" 书籍唯一id
extra Json 可选 {"key":"value"} 扩展参数,可空,Map结构

响应参数

名称 类型 示例值 描述
result TopResult true 上报结果
  • └ success
  • Boolean
  • true
  • 是否执行成功
  • └ error_code
  • String
  • 200
  • 错误码
  • └ error_msg
  • String
  • 成功
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UsergrowthUserEcologyRecordReportRequest req = new UsergrowthUserEcologyRecordReportRequest();
req.setOpenId("xxxx");
req.setAppId("xxx");
req.setBizType("\"6\"");
req.setOutId("\"xxx\"");
req.setExtraString("{\"key\":\"value\"}");
UsergrowthUserEcologyRecordReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<usergrowth_user_ecology_record_report_response>
    <result>
        <success>true</success>
        <error_code>200</error_code>
        <error_msg>成功</error_msg>
    </result>
</usergrowth_user_ecology_record_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

返回
顶部