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

定时商品图查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_units_request QueryUnitsRequest 必须 请求参数
  • └ ids
  • Number []
  • 必须
  • [123,123]
  • id

响应参数

名称 类型 示例值 描述
result Result 返回值
  • └ success
  • Boolean
  • success
  • 成功
  • model
  • UnitVO4Isv []
  • 123
  • 商品定时图
  • └ id
  • Number
  • 123
  • unitId
  • └ pic_url
  • String
  • "123"
  • 定时图
  • └ start_time
  • Date
  • 2023-02-03 00:00:00
  • 开始时间
  • └ end_time
  • Date
  • 2023-02-03 00:00:00
  • 结束时间
  • └ status
  • Number
  • 21
  • 状态12 在线 21下线
  • └ op_status
  • Number
  • 1
  • 操作状态 -1异常 1 进行中 2已完成
  • └ 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
  • id非法
  • 错误信息
  • └ msg_code
  • String
  • PARAM_ERROR
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SmartpicPictagSchedulepicQueryRequest req = new SmartpicPictagSchedulepicQueryRequest();
SmartpicPictagSchedulepicQueryRequest.QueryUnitsRequest obj1 = new SmartpicPictagSchedulepicQueryRequest.QueryUnitsRequest();
obj1.setIds(new Long[] { 123,123 };
);
req.setQueryUnitsRequest(obj1);
SmartpicPictagSchedulepicQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<smartpic_pictag_schedulepic_query_response>
    <result>
        <success>success</success>
        <model>
            <unit_v_o4_isv>
                <id>123</id>
                <pic_url>&quot;123&quot;</pic_url>
                <start_time>2023-02-03 00:00:00</start_time>
                <end_time>2023-02-03 00:00:00</end_time>
                <status>21</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>
        <msg_info>id非法</msg_info>
        <msg_code>PARAM_ERROR</msg_code>
    </result>
</smartpic_pictag_schedulepic_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

返回
顶部