简体   繁体   中英

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?

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.

I hope this will help you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM