文档中心 > API类目 > 天猫好房用户API

tmall.alihouse.customer.clue.behavior.get (查询用户行为线索)

查询用户行为线索记录

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_ids String [] 可选 [1,2,3]
  • 最大列表长度:999
  • 主键id列表
    index Number 可选 0 查询起始bizid(包含),默认查询bizId后最大200条数据
    type Number 可选 1 类型 1 IM 2 电话咨询 3 预约看房 4 变价提醒 5 开盘提醒 6 电话留资表单 7 领车券 8 车券预约 9 找房卡提交 10 关注频道

    响应参数

    名称 类型 示例值 描述
    result Result 接口返回model
    • └ msg
    • String
    • 成功
    • 返回信息
    • └ code
    • String
    • 200
    • 返回码
    • data
    • CustomerBehaviorClueResp []
    • 1234
    • 返回对象
    • └ phone_type
    • Number
    • 1
    • 设备型号 1-IOS 2-安卓
    • └ is_keep_contact
    • Number
    • 1
    • 是否愿意被联系 0-否 1-是
    • └ source
    • Number
    • 1
    • 端口来源 1-天猫好房 2-会场 3-精准营销
    • └ type
    • Number
    • 1
    • 类型 1 IM 2 电话咨询 3 预约看房 4 变价提醒 5 开盘提醒 6 电话留资表单 7 领车券 8 车券预约 9 找房卡提交 10 关注频道
    • └ biz_line
    • Number
    • 1
    • 业务线 1 楼盘详情底Bar2 楼盘详情员工list3 楼盘详情提醒留资4 楼盘卡片(地图)5 楼盘评测详情底bar6 楼盘卡片(泛内容)7 VR详情8 楼盘卡片(专题页)9 楼盘详情(精准营销)底Bar0 楼盘详情(精准营销)_其他留资11 楼盘详情领车券12 车券详情13 首次找房卡14 完整找房卡
    • └ phone_version
    • String
    • 7.0
    • 设备版本号
    • └ biz_phone
    • String
    • 13333333333
    • 业务留资手机号
    • └ system
    • Number
    • 1
    • 务系统来源 1-新房 2-二手房
    • └ create_time
    • Date
    • 1619698303825
    • 创建时间
    • └ ext
    • String
    • {”bizId“:1,"appointmentStartTime":"2020-06-18 16:00:00","appointmentEndTime":"2020-06-18 16:01:00","isRealName":true}
    • 扩展字段:bizId,预约时间,
    • └ is_test
    • Number
    • 1
    • 是否测试楼盘 0-非测试 1-测试
    • └ outer_id
    • String
    • 10000
    • 乐居楼盘Id
    • └ biz_id
    • Number
    • 1
    • 主键id
    • └ page_url
    • String
    • http://1234567788
    • 页面url
    • └ user_id
    • String
    • 1231232132
    • 用户openId
    • └ haofang_source
    • String
    • 123
    • 来源渠道一级编码
    • └ haofang_medium
    • String
    • 12345
    • 来源渠道二级编码
    • └ page_id
    • String
    • 1234
    • 留资所在当前页面的spmid
    • └ src_merchant_id
    • String
    • 123456
    • 来源商户code
    • └ merchant_id
    • String
    • 123
    • 归属商户code
    • └ district_code
    • String
    • 310011, 310012, 310015
    • 区域code
    • └ city_code
    • String
    • 310010
    • 城市code
    • └ customer_md5_id
    • String
    • sfdfdfsdf245667433
    • 客户md5Id
    • └ out_broker_id
    • String
    • 12345
    • 外部经纪人id
    • └ intention_degree
    • Number
    • 1
    • 意向度 1-高 3-中 5-低
    • └ intention_score
    • Number
    • 16
    • 意向分值
    • └ project_store_id
    • String
    • 12sdf34
    • 归属项目店店铺id
    • └ src_project_store_id
    • String
    • 123fghh4566
    • 来源项目店店铺id
    • └ contact_info
    • String
    • sdfsdfdsfdsf
    • 联系信息
    • └ success
    • Boolean
    • true
    • 调用结果

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallAlihouseCustomerClueBehaviorGetRequest req = new TmallAlihouseCustomerClueBehaviorGetRequest();
    req.setBizIds("1,2,3");
    req.setIndex(0L);
    req.setType(1L);
    TmallAlihouseCustomerClueBehaviorGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_alihouse_customer_clue_behavior_get_response>
        <result>
            <msg>成功</msg>
            <code>200</code>
            <data>
                <customer_behavior_clue_resp>
                    <phone_type>1</phone_type>
                    <is_keep_contact>1</is_keep_contact>
                    <source>1</source>
                    <type>1</type>
                    <biz_line>1</biz_line>
                    <phone_version>7.0</phone_version>
                    <biz_phone>13333333333</biz_phone>
                    <system>1</system>
                    <create_time>1619698303825</create_time>
                    <ext>{”bizId“:1,&quot;appointmentStartTime&quot;:&quot;2020-06-18 16:00:00&quot;,&quot;appointmentEndTime&quot;:&quot;2020-06-18 16:01:00&quot;,&quot;isRealName&quot;:true}</ext>
                    <is_test>1</is_test>
                    <outer_id>10000</outer_id>
                    <biz_id>1</biz_id>
                    <page_url>http://1234567788</page_url>
                    <user_id>1231232132</user_id>
                    <haofang_source>123</haofang_source>
                    <haofang_medium>12345</haofang_medium>
                    <page_id>1234</page_id>
                    <src_merchant_id>123456</src_merchant_id>
                    <merchant_id>123</merchant_id>
                    <district_code>310011, 310012, 310015</district_code>
                    <city_code>310010</city_code>
                    <customer_md5_id>sfdfdfsdf245667433</customer_md5_id>
                    <out_broker_id>12345</out_broker_id>
                    <intention_degree>1</intention_degree>
                    <intention_score>16</intention_score>
                    <project_store_id>12sdf34</project_store_id>
                    <src_project_store_id>123fghh4566</src_project_store_id>
                    <contact_info>sdfsdfdsfdsf</contact_info>
                </customer_behavior_clue_resp>
            </data>
            <success>true</success>
        </result>
    </tmall_alihouse_customer_clue_behavior_get_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

    返回
    顶部