文档中心 > API类目 > AE-图片银行

aliexpress.photobank.redefining.queryphotobankimagebypaths (根据path查询图片信息)

根据path查询图片信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
paths String [] 可选 HTB1rxqmHpXXXXXBXFXXq6xXFXXXm.jpg,HBA1rxqmHpXXXXXBXFXXq6xXFXXXm.jpg
  • 最大列表长度:20
  • 图片文件名,多个文件用逗号分隔

    响应参数

    名称 类型 示例值 描述
    result AeopPhotoBankImageResponse 0 result
    • └ images
    • Json
    • { "images": { "HTB1xVhfKpXXXXXmXVXXq6xXFXXXY.jpg": { "fileSize": 119718, "groupId": "", "height": 666, "iid": 3998011801, "width": 1000, "referenceCount": 0, "displayName": "test" }, "HTB1DzELIVXXXXaNXFXXq6xXFXXXX.jpg": { "fileSize": 128849, "groupId": "", "height": 820, "iid": 3761175464, "width": 820, "referenceCount": 3, "displayName": "gougouopitmize" } }}
    • 图片信息列表。
    • └ error_code
    • Number
    • 16009999
    • 错误代码
    • └ error_message
    • String
    • 系统异常!
    • 错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliexpressPhotobankRedefiningQueryphotobankimagebypathsRequest req = new AliexpressPhotobankRedefiningQueryphotobankimagebypathsRequest();
    req.setPaths("HTB1rxqmHpXXXXXBXFXXq6xXFXXXm.jpg,HBA1rxqmHpXXXXXBXFXXq6xXFXXXm.jpg");
    AliexpressPhotobankRedefiningQueryphotobankimagebypathsResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliexpress_photobank_redefining_queryphotobankimagebypaths_response>
        <result>
            <images>{	&quot;images&quot;: {		&quot;HTB1xVhfKpXXXXXmXVXXq6xXFXXXY.jpg&quot;: {			&quot;fileSize&quot;: 119718,			&quot;groupId&quot;: &quot;&quot;,			&quot;height&quot;: 666,			&quot;iid&quot;: 3998011801,			&quot;width&quot;: 1000,			&quot;referenceCount&quot;: 0,			&quot;displayName&quot;: &quot;test&quot;		},		&quot;HTB1DzELIVXXXXaNXFXXq6xXFXXXX.jpg&quot;: {			&quot;fileSize&quot;: 128849,			&quot;groupId&quot;: &quot;&quot;,			&quot;height&quot;: 820,			&quot;iid&quot;: 3761175464,			&quot;width&quot;: 820,			&quot;referenceCount&quot;: 3,			&quot;displayName&quot;: &quot;gougouopitmize&quot;		}	}}</images>
            <error_code>16009999</error_code>
            <error_message>系统异常!</error_message>
        </result>
    </aliexpress_photobank_redefining_queryphotobankimagebypaths_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

    返回
    顶部