[英]BigCommerce - Get product image thumbnail urls
I know it is possible to get the image_file url through the image API call , but would it be possible to retrieve the URLs for image thumbnails? 我知道可以通过图像API调用获取image_file URL,但是是否可以检索图像缩略图的URL?
Thanks! 谢谢!
$.ajax(
{
url: api path path here for image //like https://yourdomain.com/api/v2/products/id/images.json,
method: 'GET',
dataType: 'json',
data: {is_thumbnail:true},
beforeSend : function(req)
{
req.setRequestHeader('Authorization', auth);
},
success: function(data, textStatus, jqXHR)
{
/*code after sucess here*/
}
});
And BC has only one thumbnail image so it return only one image to you. 并且BC仅具有一张缩略图,因此它仅返回一张图像给您。
I hope this will help you 我希望这能帮到您
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.