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

alibaba.decoration.content.getdetail (内容详情)

内容详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
owner_type Number 必须 2 业务归属 1:佳装 2:线下工作台
param ContentGetReq 可选 内容详情入参
  • └ content_id
  • String
  • 必须
  • fdsgsfg
  • 内容id(加密)
  • └ outer_store_id
  • String
  • 可选
  • 342524354235
  • 外部门店id
  • └ external_item_code
  • String
  • 可选
  • 342524354235
  • 外部商品id
  • └ play_source
  • String
  • 可选
  • pc
  • bigScreen|pc|pad|mobile

响应参数

名称 类型 示例值 描述
result Result result
  • └ message_flag
  • Boolean
  • true
  • 成功
  • └ message_code
  • Number
  • 100399999
  • 返回错误码
  • └ message_info
  • String
  • 程序发生异常
  • 错误message
  • data
  • ContentDetailResp
  • 内容详情
  • └ outer_store_id
  • String
  • 2342434
  • 外部门店id
  • └ content_id
  • String
  • 345534tr
  • 内容id(加密)
  • └ title
  • String
  • 每平每屋
  • 标题
  • style_list
  • StyleList
  • [{"key":"china","value":"中国"}]
  • └ key
  • String
  • china
  • key
  • └ value
  • String
  • 中国
  • value
  • cover_info
  • CoverDTO
  • 封面
  • └ cover_url
  • String
  • http
  • 封面图地址
  • └ width
  • String
  • 800
  • └ height
  • String
  • 800
  • └ house_area
  • String
  • 100
  • 房屋面积
  • room_type
  • RoomType
  • 房间类型
  • └ key
  • String
  • bedroom
  • key
  • └ value
  • String
  • 客厅
  • value
  • room_count_info
  • RoomCountDTO
  • 房间户型
  • └ living_room
  • String
  • 1厅
  • └ bed_room
  • String
  • 3室
  • └ bath_room
  • String
  • 1卫
  • └ content_status
  • Number
  • 2
  • 内容状态
  • └ pano_url
  • String
  • http://shejijia.com
  • 内容链接
  • └ navipano
  • Boolean
  • true
  • 是否全屋漫游
  • └ replaceable
  • Boolean
  • true
  • 可替换商品
  • space_type
  • SpaceType
  • 空间类型
  • └ key
  • String
  • china
  • 类型key
  • └ value
  • String
  • 中国
  • 类型value
  • content_type
  • ContentType
  • 内容类型
  • └ key
  • String
  • 0
  • 内容类型key
  • └ value
  • String
  • 3d样板间
  • 内容类型value
  • └ external_sku_code_list
  • String
  • [123,2323]
  • 商品skucode
  • house_type_resp
  • HouseTypeResp
  • 省市区/户型信息
  • └ province_code
  • Number
  • 300001
  • 省code
  • └ city_code
  • Number
  • 3100001
  • 城市code
  • └ district_code
  • Number
  • 3110002
  • 区code
  • └ province_name
  • String
  • 浙江省
  • 省name
  • └ city_name
  • String
  • 杭州
  • 市name
  • └ district_name
  • String
  • 余杭
  • 区name
  • └ house_type_id
  • String
  • 234435345
  • 户型id
  • └ house_type_name
  • String
  • 三室一厅
  • 户型name
  • └ image_url
  • String
  • https://jr-prod-cms-assets.oss-cn-beijing.aliyuncs.com/Asset/60288324-1d57-4a57-9246-63b63f07b487/v1665647571/image2d/8f877cfe-be08-4f36-bcff-5bcf3f70f8fe.png
  • 主图预览url
  • └ poi_id
  • String
  • HFHJDKDSKDK
  • 小区poiId
  • └ community_name
  • String
  • 西溪公馆
  • 小区name
  • └ lat
  • String
  • 36.89898989
  • 纬度
  • └ lng
  • String
  • 128.89898989
  • 经度
  • └ gross_area
  • String
  • 123.7
  • 面积 - 建筑面积
  • └ room_area
  • String
  • 89.88
  • 套内面积
  • └ content_data
  • String
  • []
  • 对外提供的内容素材信息,用于扩展。目前会存放图片和视频链接

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDecorationContentGetdetailRequest req = new AlibabaDecorationContentGetdetailRequest();
req.setOwnerType(2L);
AlibabaDecorationContentGetdetailRequest.ContentGetReq obj1 = new AlibabaDecorationContentGetdetailRequest.ContentGetReq();
obj1.setContentId("fdsgsfg");
obj1.setOuterStoreId("342524354235");
obj1.setExternalItemCode("342524354235");
obj1.setPlaySource("pc");
req.setParam(obj1);
AlibabaDecorationContentGetdetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_decoration_content_getdetail_response>
    <result>
        <message_flag>true</message_flag>
        <message_code>100399999</message_code>
        <message_info>程序发生异常</message_info>
        <data>
            <outer_store_id>2342434</outer_store_id>
            <content_id>345534tr</content_id>
            <title>每平每屋</title>
            <style_list>
                <key>china</key>
                <value>中国</value>
            </style_list>
            <cover_info>
                <cover_url>http</cover_url>
                <width>800</width>
                <height>800</height>
            </cover_info>
            <house_area>100</house_area>
            <room_type>
                <key>bedroom</key>
                <value>客厅</value>
            </room_type>
            <room_count_info>
                <living_room>1厅</living_room>
                <bed_room>3室</bed_room>
                <bath_room>1卫</bath_room>
            </room_count_info>
            <content_status>2</content_status>
            <pano_url>http://shejijia.com</pano_url>
            <navipano>true</navipano>
            <replaceable>true</replaceable>
            <space_type>
                <key>china</key>
                <value>中国</value>
            </space_type>
            <content_type>
                <key>0</key>
                <value>3d样板间</value>
            </content_type>
            <external_sku_code_list>[123,2323]</external_sku_code_list>
            <house_type_resp>
                <province_code>300001</province_code>
                <city_code>3100001</city_code>
                <district_code>3110002</district_code>
                <province_name>浙江省</province_name>
                <city_name>杭州</city_name>
                <district_name>余杭</district_name>
                <house_type_id>234435345</house_type_id>
                <house_type_name>三室一厅</house_type_name>
                <image_url>https://jr-prod-cms-assets.oss-cn-beijing.aliyuncs.com/Asset/60288324-1d57-4a57-9246-63b63f07b487/v1665647571/image2d/8f877cfe-be08-4f36-bcff-5bcf3f70f8fe.png</image_url>
                <poi_id>HFHJDKDSKDK</poi_id>
                <community_name>西溪公馆</community_name>
                <lat>36.89898989</lat>
                <lng>128.89898989</lng>
                <gross_area>123.7</gross_area>
                <room_area>89.88</room_area>
            </house_type_resp>
            <content_data>[]</content_data>
        </data>
    </result>
</alibaba_decoration_content_getdetail_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

返回
顶部