Tag: best buy api

如何查询带有jQuery的Best Buy Remix API?

这是我一直在尝试使用的代码: $.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); } }); 但是,返回的数据有错误,因为它不理解请求的URL。 我查看了Firebug中的网络标签,这里是它试图呼叫的url: http://api.remix.bestbuy.com/v1/products(search=digital%20camera)?apiKey=myapikey&format=json&callback=json1264868431&_1254866270659 = 我认为这个问题存在于粗体部分,据我所知,这部分是无缘无故的。 我认为Remix API看到它并认为它是一个拙劣的参数。 有没有办法阻止它被添加?