【问题标题】:Best Buy - Products API problems百思买 - 产品 API 问题
【发布时间】:2015-02-11 13:25:57
【问题描述】:

我对 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;

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

【问题讨论】:

  • 我也尝试过使用 name=rawurlencode(STRINGTOSEARCH),我错过了 categoryPath.id,因为我在任何地方都找不到它

标签: best-buy-api


【解决方案1】:

这取决于您希望回答的完整程度。如果您正在寻找由 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

如果您想加入 Marketplace 三星 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 项目。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-12-15
    • 1970-01-01
    • 1970-01-01
    • 2021-10-10
    • 2023-03-12
    • 2011-12-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多