Hey,
I need a product list on a remote site, so I try to pull the myshopify/admin/product.json
$.ajax({
type: "GET",
url: "https://key:pass@store.myshopify.com/admin/products.json",
dataType: "jsonp",
success: function(data){
console.log("success");
console.log(data);
},
error: function(error){
console.log("error");
console.log(error);
}
});
I get the json as a response, however my responce isn't wrapped as jsonp. So I get: "SyntaxError: invalid label"
I've pulled the cart.json in a similar fashion and the response came back wrapped and functional.
Any idea why the response doesnt support the callback? Help is greatly appreciated.