商品信息查询(仅用于商品上传数据验证,不能用于商品下载,有限流)
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_cspu_criteria | CspuCriteria | 可选 | 组合查询对象 | ||
|
|||||
param_paginator | Paginator | 必须 | 分页参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | PagedList | data | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaMosGoodsSearchcspuRequest req = new AlibabaMosGoodsSearchcspuRequest(); AlibabaMosGoodsSearchcspuRequest.CspuCriteria obj1 = new AlibabaMosGoodsSearchcspuRequest.CspuCriteria(); obj1.setArtNos("68325"); obj1.setBarcodes("68325-02"); obj1.setBrandIds("19835"); obj1.setCatIds("1535"); obj1.setCreateDateEnd(StringUtils.parseDateTime("2018-02-01 11:11:11")); obj1.setCreateDateStart(StringUtils.parseDateTime("2018-02-01 11:11:11")); obj1.setCspuIds("10000337658602"); obj1.setKeyword("阿迪达斯男士上衣\""); obj1.setPropertyValueIds("1585"); obj1.setSpuIds("100000336689"); obj1.setStyleNo("6843548"); req.setParamCspuCriteria(obj1); AlibabaMosGoodsSearchcspuRequest.Paginator obj2 = new AlibabaMosGoodsSearchcspuRequest.Paginator(); obj2.setPage(1L); obj2.setPageSize(100L); req.setParamPaginator(obj2); AlibabaMosGoodsSearchcspuResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alibaba_mos_goods_searchcspu_response> <data> <current_page>1</current_page> <list> <cspudto> <art_no>234234</art_no> <barcode>4857694444</barcode> <created>2017-11-11 11:11:11</created> <creator_id>2017-11-11 11:11:11</creator_id> <id>123123</id> <level>1</level> <modified>2017-11-23 12:11:12</modified> <modifier_id>123231</modifier_id> <out_id>34344</out_id> <properties> <property_dto> <p_alias></p_alias> <p_custom_name></p_custom_name> <p_id></p_id> <p_name></p_name> <v_alias></v_alias> <v_custom_name></v_custom_name> <v_id></v_id> <v_name></v_name> <img_url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</img_url> <order>1</order> <property_type>sale</property_type> </property_dto> </properties> <spu> <barcode_str>023343434</barcode_str> <brand_id>23485</brand_id> <brand_name>阿迪达斯</brand_name> <cat_name>女士</cat_name> <cid>1000098</cid> <created>2017-06-09 11:20:32</created> <id>56756</id> <is_new>true</is_new> <level>4</level> <material>图片地址</material> <mdesc>女士运动卫衣</mdesc> <modified>2017-11-12 11:11:11</modified> <pc_desc>女士运动卫衣</pc_desc> <pic_url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</pic_url> <price>200.12</price> <product_id>23455445</product_id> <product_imgs> <product_img_dto> <id>234234</id> <position>1</position> <url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</url> </product_img_dto> </product_imgs> <props> <property_dto> <p_alias></p_alias> <p_custom_name></p_custom_name> <p_id></p_id> <p_name></p_name> <v_alias></v_alias> <v_custom_name></v_custom_name> <v_id></v_id> <v_name></v_name> <img_url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</img_url> <order>1</order> <property_type>sale</property_type> </property_dto> </props> <rate_num>1</rate_num> <sell_pt>明细同款</sell_pt> <status>1</status> <style_no>020714898342</style_no> <sub_title>短款卫衣</sub_title> <tags>{"colorCode":"0901","colorName":"红色"}</tags> <title>女士卫衣</title> </spu> <standard>true</standard> <status>1</status> <style_no>020714898342</style_no> <sub_title>卫衣</sub_title> <tag_price>40.15</tag_price> <title>卫衣</title> <user_type></user_type> </cspudto> </list> <page_size>10</page_size> <total_count>20</total_count> <total_page>2</total_page> </data> </alibaba_mos_goods_searchcspu_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|