0

我对 BestBuy 的 Products API 有疑问。我正在尝试搜索“三星银河 s3”之类的内容。我已经尝试在我的 php 页面中使用 file_get_contents。我的电话类似于:http : //api.remix.bestbuy.com/v1/products((search=samsung&search=galaxy&search=s3)&salePrice >VALUE)?show=name,salePrice&format=xml&apiKey=MYAPIKEY;

这不会返回任何内容。如何搜索手机?

4

1 回答 1

0

这取决于您希望答案的完整程度。如果您正在寻找由 Best Buy 提供的三星 Galaxy S III,请使用: http : //api.remix.bestbuy.com/v1/products(name=%22Galaxy%20S%20III *%22&categoryPath.id=abcat0800000&categoryPath.id! =abcat0811002)?apiKey=YourAPIKey&show=sku,name,salePrice

如果您想包含市场三星 Galaxy S III,请使用: http : //api.remix.bestbuy.com/v1/products(name=%22Galaxy%20S%20III %22&categoryPath.id=abcat0800000&categoryPath.id!=abcat0811002&marketplace= ) ?apiKey=YourAPIKey&show=sku,name,salePrice,marketplace&pageSize=100

对于查询,我使用通配符搜索了 Galaxy S III 的名称字段。然后我将这些结果过滤为只是手机。第二个查询打开了搜索,还包括 Marketplace 项目。

于 2015-02-19T03:40:29.880 回答