通过品类和名称模糊查询产品信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
product_name | String | 必须 | 产品 | 产品名称 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ProductDto [] | 返回结果 | |
|
1 2 3 4 5 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaInfopCeresProductQueryRequest req = new AlibabaInfopCeresProductQueryRequest(); req.setProductName( "产品" ); AlibabaInfopCeresProductQueryResponse 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 36 37 38 39 40 41 42 43 | < alibaba_infop_ceres_product_query_response > < result > < product_dto > < code >0</ code > < message >Success</ message > < success >true</ success > < product_list > < product_dto > < atta_template > < business_id >45036064</ business_id > < business_type >CMALL_PRODUCT_ATTACHMENT</ business_type > < comments >备注</ comments > < file_name >Koala.jpg</ file_name > < id >284627</ id > < is_deleted >n</ is_deleted > < resource_id >01caec8c-c9e2-4e2a-823a-126a2339e9a8</ resource_id > < status >upload</ status > < storage_type >OSS</ storage_type > < url >1</ url > </ atta_template > < category_id >161</ category_id > < category_use >1</ category_use > < charge_unit >1</ charge_unit > < data_source >1</ data_source > < gmt_create >1</ gmt_create > < id >201257</ id > < is_need_file >1</ is_need_file > < need_expense_city >1</ need_expense_city > < need_project_name >1</ need_project_name > < product_code >MC019000</ product_code > < product_desc >1</ product_desc > < product_name >自测添加产品1</ product_name > < purchase_channel >1</ purchase_channel > < recommendation >1</ recommendation > < source_info >1</ source_info > < source_value >1</ source_value > < status >1</ status > < tenant_id >1</ tenant_id > </ product_dto > </ product_list > </ product_dto > </ result > </ alibaba_infop_ceres_product_query_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 > |
错误码 | 错误描述 | 解决方案 |
---|