文档中心 > API类目 > 客户运营平台API

taobao.opencrm.shop.decoration.query (店铺页面模块装修查询)

店铺页面模块装修查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shop_decoration_query ShopDecorationQuery 可选 shop_decoration_query
  • └ module_code
  • String
  • 必须
  • tbshopmod-crowposter
  • 模块code
  • └ page_no
  • Number
  • 可选
  • 1
  • 页面
  • └ page_size
  • Number
  • 可选
  • 8
  • 页大小

响应参数

名称 类型 示例值 描述
result Result 统一返回模型
  • └ msg
  • String
  • 错误信息
  • 错误信息
  • decoration_model
  • DecorationModelDto
  • 装修模型
  • └ total
  • Number
  • 100
  • 总数
  • └ page_num
  • Number
  • 1
  • 页码
  • └ page_size
  • Number
  • 100
  • 页面大小
  • model_list
  • DecorationModel []
  • 店铺页面列表
  • └ id
  • Number
  • 123456
  • 页面ID
  • └ name
  • String
  • 默认首页
  • 页面名称
  • └ gmt_modified
  • Date
  • 2021-09-28 20:59:14
  • 页面编辑时间
  • └ publish_time
  • Date
  • 2021-09-28 20:59:14
  • 页面发布时间
  • └ is_decorated
  • Boolean
  • true
  • 该模块在页面上是否装配
  • └ group_id
  • Number
  • -1
  • 页面组id
  • └ decorate_link
  • String
  • "https://xxxxx"
  • 旺铺装修页面跳转链接
  • └ code
  • String
  • 错误码
  • 错误码
  • └ success
  • String
  • true
  • true

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpencrmShopDecorationQueryRequest req = new OpencrmShopDecorationQueryRequest();
OpencrmShopDecorationQueryRequest.ShopDecorationQuery obj1 = new OpencrmShopDecorationQueryRequest.ShopDecorationQuery();
obj1.setModuleCode("tbshopmod-crowposter");
obj1.setPageNo(1L);
obj1.setPageSize(8L);
req.setShopDecorationQuery(obj1);
OpencrmShopDecorationQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<opencrm_shop_decoration_query_response>
    <result>
        <msg>错误信息</msg>
        <decoration_model>
            <total>100</total>
            <page_num>1</page_num>
            <page_size>100</page_size>
            <model_list>
                <decoration_model>
                    <id>123456</id>
                    <name>默认首页</name>
                    <gmt_modified>2021-09-28 20:59:14</gmt_modified>
                    <publish_time>2021-09-28 20:59:14</publish_time>
                    <is_decorated>true</is_decorated>
                    <group_id>-1</group_id>
                    <decorate_link>&quot;https://xxxxx&quot;</decorate_link>
                </decoration_model>
            </model_list>
        </decoration_model>
        <code>错误码</code>
        <success>true</success>
    </result>
</opencrm_shop_decoration_query_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

返回
顶部