2013-12-17 95 views

回答

1
$.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*/ 
    } 
}); 

而BC只有一個縮略圖圖像,所以它只返回一個圖像給你。

我希望這會幫助你