best-buy-api

How can I query the Best Buy Remix API w/ jQuery?

北慕城南 提交于 2019-12-12 05:29:49
问题 Here's the code that I've been trying to work with: $.getJSON("http://api.remix.bestbuy.com/v1/products(search=" + escape(searchCriteria) + ")?apiKey=" + hhApiKey + "&format=json&callback=?", function(data) { if(data.error) { alert("I'm sorry, there was an error processing your request."); } else { alert(data); } }); However, the data that comes back has an error because it doesn't understand the requested URL. I looked at the net tab in Firebug and here's the URL it's trying to call out to: