我正在实施BestBuy API。我已经看过它的JSON回调网址了。谁能告诉我xml回调网址?
我写了这个查询
String url = "https://api.bestbuy.com/v1/products((search="+keyWords+"))?apiKey=myApiKey&callback=XML_CALLBACK&format=xml";
但它给了我nullpointer异常
答案 0 :(得分:0)
以下是搜索文档的链接: https://bestbuyapis.github.io/api-documentation/
以下是使用通配符产品名称搜索xml响应的卷曲示例:
curl -v 'https://api.bestbuy.com/v1/products(name=contigo*)?format=xml&show=sku,name,salePrice&apiKey=myApiKey'