taobao.smartpic.pictag.schedulepic.querybygroup (定时商品图查询)

定时商品图查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_units_request QueryUnitsByGroupRequest 必须 请求参数
  • └ group_type
  • String
  • 必须
  • ACTIVITY_GROUP
  • group_type
  • └ group_key
  • String
  • 必须
  • 123
  • group_key
  • └ page_no
  • Number
  • 必须
  • 1
  • pageNo
  • └ page_size
  • Number
  • 必须
  • 20
  • pageSize
  • └ size
  • String
  • 可选
  • 1:1
  • 1:1

响应参数

名称 类型 示例值 描述
result Result 返回值
  • └ success
  • Boolean
  • true
  • 成功
  • model
  • PageResponse
  • 结果
  • └ total_count
  • Number
  • 1234
  • totalCount
  • model
  • UnitVO4Isv []
  • unitVO
  • └ id
  • Number
  • 123
  • id
  • └ pic_url
  • String
  • https://gw.alicdn.com/imgextra/O1CN012JsWJzDjNUnyxS9_!!263669477-0-picasso.jpg
  • 图片链接
  • └ start_time
  • Date
  • 2023-02-03 00:00:00
  • 开始时间
  • └ end_time
  • Date
  • 2023-02-03 00:00:00
  • 结束时间
  • └ status
  • Number
  • 12
  • status
  • └ op_status
  • Number
  • 1
  • 操作状态
  • └ op_result
  • String
  • 图片不存在
  • 操作结果
  • └ size
  • String
  • 1:1
  • 尺寸
  • └ src_pic_url
  • String
  • https://gw.alicdn.com/imgextra/O1CN012JsWJzDjNUnyxS9_!!263669477-0-picasso.jpg
  • 原图
  • └ item_id
  • Number
  • 123
  • 商品id
  • └ msg_info
  • String
  • PARAM_ERROR
  • 错误信息
  • └ msg_code
  • String
  • PARAM_ERROR
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SmartpicPictagSchedulepicQuerybygroupRequest req = new SmartpicPictagSchedulepicQuerybygroupRequest();
SmartpicPictagSchedulepicQuerybygroupRequest.QueryUnitsByGroupRequest obj1 = new SmartpicPictagSchedulepicQuerybygroupRequest.QueryUnitsByGroupRequest();
obj1.setGroupType("ACTIVITY_GROUP");
obj1.setGroupKey("123");
obj1.setPageNo(1L);
obj1.setPageSize(20L);
obj1.setSize("1:1");
req.setQueryUnitsRequest(obj1);
SmartpicPictagSchedulepicQuerybygroupResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<smartpic_pictag_schedulepic_querybygroup_response>
    <result>
        <success>true</success>
        <model>
            <total_count>1234</total_count>
            <model>
                <unit_v_o4_isv>
                    <id>123</id>
                    <pic_url>https://gw.alicdn.com/imgextra/O1CN012JsWJzDjNUnyxS9_!!263669477-0-picasso.jpg</pic_url>
                    <start_time>2023-02-03 00:00:00</start_time>
                    <end_time>2023-02-03 00:00:00</end_time>
                    <status>12</status>
                    <op_status>1</op_status>
                    <op_result>图片不存在</op_result>
                    <size>1:1</size>
                    <src_pic_url>https://gw.alicdn.com/imgextra/O1CN012JsWJzDjNUnyxS9_!!263669477-0-picasso.jpg</src_pic_url>
                    <item_id>123</item_id>
                </unit_v_o4_isv>
            </model>
        </model>
        <msg_info>PARAM_ERROR</msg_info>
        <msg_code>PARAM_ERROR</msg_code>
    </result>
</smartpic_pictag_schedulepic_querybygroup_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

返回
顶部