Appearance
4.4 获取商品图片
接口说明:
Method | URL | ContentType |
---|---|---|
GET | /api/restful/products/images | applicatioin/json |
URL参数说明:
参数 | 类型说明 | 是否必须 | 长度 | 描述 |
---|---|---|---|---|
skus | string | 必须 | 50 | 多个商品编号;支持批量,以英文逗号分隔 |
返回结果说明:
参数 | 类型说明 | 描述 |
---|---|---|
sku | string | 商品编号 |
path | string | 图片路径 |
order | int | 图片排序 |
请求参数示例:
/api/restful/products/images?skus=1049204,105019
返回数据示例:
json
{
"result": [{
"sku": "1049204",
"images": [{
"path": "http://res.clpcdn.com/pmspic/ItemPicture/2/20/126/49191/Original/1049204.jpg",
"order": 1
}, {
"path": "http://res.clpcdn.com/pmspic/ItemPicture/2/20/126/49191/Largest/1_1049204.jpg",
"order": 2
}, {
"path": "http://res.clpcdn.com/pmspic/ItemPicture/2/20/126/49191/DetailBig/1_1049204.jpg",
"order": 2
}, {
"path": "http://res.clpcdn.com/pmspic/ItemPicture/2/20/126/49191/Original/2_1049204.jpg",
"order": 3
}]
}, {
"sku": "105019",
"images": [{
"path": "http://res.clpcdn.com/pmspic/ItemPicture/2/20/126/734/Original/105019.jpg",
"order": 1
}, {
"path": "http://res.clpcdn.com/pmspic/ItemPicture/2/20/126/734/Largest/1_105019.jpg",
"order": 2
}]
}],
"success": true,
"errormsg": "",
"errorcode": "0",
"requestId": "818de4cd1d0f467e86609a09df13688f"
}