0

我正在实施 BestBuy API。我已经看到它的 JSON 回调 url。谁能告诉我xml回调网址?

我写了这个查询

String url = "https://api.bestbuy.com/v1/products((search="+keyWords+"))?apiKey=myApiKey&callback=XML_CALLBACK&format=xml";

但它给了我空指针异常

4

1 回答 1

0

这是搜索文档的链接: https ://bestbuyapis.github.io/api-documentation/

这是一个使用 xml 响应按通配符产品名称搜索的 curl 示例:

curl -v 'https://api.bestbuy.com/v1/products(name=contigo*)?format=xml&show=sku,name,salePrice&apiKey=myApiKey'
于 2016-07-28T18:47:18.333 回答