批量申请上传图片
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
types | String [] | 必须 | image/jpeg |
|
文件类型,支持"image/jpeg"、"image/png"、"image/jpg" |
file_domain | String | 可选 | item |
|
业务范围:模型model,商品item |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | result | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaDecorationFileUploadListRequest req = new AlibabaDecorationFileUploadListRequest(); req.setTypes( "image/jpeg" ); req.setFileDomain( "item" ); AlibabaDecorationFileUploadListResponse 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 | < alibaba_decoration_file_upload_list_response > < result > < message_flag >true</ message_flag > < message_code >100399999</ message_code > < message_info >程序发生异常</ message_info > < data > < list > < open_file_url_resp > < file_id >af6dcc1f31e04eba95b9187ff07e835f.png</ file_id > < upload_url >xxxxx</ upload_url > < url >xxxxx</ url > </ open_file_url_resp > </ list > </ data > </ result > </ alibaba_decoration_file_upload_list_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 > |
错误码 | 错误描述 | 解决方案 |
---|