图片搜索
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
target_language | String | 可选 | EN | target_language:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN | |
target_currency | String | 可选 | USD | target_currency:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW | |
product_cnt | Number | 可选 | 10 | count of products, max 150. | |
sort | String | 可选 | SALE_PRICE_ASC | SALE_PRICE_ASC, SALE_PRICE_DESC, LAST_VOLUME_ASC, LAST_VOLUME_DESC | |
shpt_to | String | 可选 | US | optional Ship to Country | |
image_file_bytes | byte[] | 可选 | [1,1] | image name in fileserver,max size 100 KB |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
rsp_code | String | 404 | error code |
data | TrafficImageSearchResultDTO | result object | |
|
|||
rsp_msg | String | System Error | System Error |
total_record_count | Number | 10 | total record count |
1 2 3 4 5 6 7 8 9 10 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressDsImageSearchRequest req = new AliexpressDsImageSearchRequest(); req.setTargetLanguage( "EN" ); req.setTargetCurrency( "USD" ); req.setProductCnt(10L); req.setSort( "SALE_PRICE_ASC" ); req.setShptTo( "US" ); req.setImageFileBytes( new FileItem( "/tmp/file.txt" )); AliexpressDsImageSearchResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | < aliexpress_ds_image_search_response > < rsp_code >404</ rsp_code > < data > < products > < traffic_image_product_d_t_o > < original_price >10</ original_price > < original_price_currency >USD</ original_price_currency > < discount >20%</ discount > < lastest_volume >100</ lastest_volume > < seller_id >11897</ seller_id > < target_sale_price >10</ target_sale_price > < evaluate_rate >99%</ evaluate_rate > < target_original_price >10</ target_original_price > < shop_id >1118980</ shop_id > < second_level_category_name >18778</ second_level_category_name > < first_level_category_id >199</ first_level_category_id > < product_video_url >xxx.mp4</ product_video_url > < product_id >78</ product_id > < sale_price >19</ sale_price > < target_sale_price_currency >USD</ target_sale_price_currency > < second_level_category_id >899</ second_level_category_id > < shop_url >xxx.html</ shop_url > < product_title >xxx</ product_title > < product_detail_url >xxx.html</ product_detail_url > < first_level_category_name >xxx</ first_level_category_name > < product_main_image_url >xxx.html</ product_main_image_url > < platform_product_type >PC</ platform_product_type > < target_original_price_currency >USD</ target_original_price_currency > < sale_price_currency >USD</ sale_price_currency > </ traffic_image_product_d_t_o > </ products > </ data > < rsp_msg >System Error</ rsp_msg > < total_record_count >10</ total_record_count > </ aliexpress_ds_image_search_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|