问题标签 [best-buy-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1059 浏览

jquery - 如何使用 jQuery 查询 Best Buy Remix API?

这是我一直在尝试使用的代码:

但是,返回的数据有错误,因为它不理解请求的 URL。我查看了 Firebug 中的 net 选项卡,这是它试图调用的 URL:

http://api.remix.bestbuy.com/v1/products(search=digital%20camera)?apiKey=myapikey&format=json&callback=json1264868431 &_1254866270659=

我认为问题在于粗体部分,据我所知,该部分无缘无故被添加。我认为 Remix API 看到了它并认为它是一个拙劣的参数。有没有办法阻止它被添加?

0 投票
3 回答
818 浏览

php - 带有 AJAX 和 jQuery 的 Best Buy API - 错误

正如这个问题的答案所说,我有这段代码来查询百思买 api:

代码运行良好,但从百思买返回错误消息:

“无法理解 '/v1/products(search=camera)?apiKey=myApiKey&format=json&callback=jQuery16209624163198750466_1312575558844'”

如果我遗漏“回调=?” 当我在浏览器上访问它时,该 url 会很好地返回产品,但在代码中它会引发 javascript 错误:

“XMLHttpRequest 无法加载http://api.remix.bestbuy.com/v1/products(search=camera)?apiKey=myApiKey&format=json 。Access -Control-Allow-Origin 不允许来源http://mysite.com。”

0 投票
1 回答
406 浏览

best-buy-api - Api 在 bestbuy 中返回意外数据

我正在尝试获取 iphone5 搜索。

这是我正在点击的网址。

http://api.remix.bestbuy.com/v1/products(search=Iphone5)?apiKey=myapi&page=1

而且这个响应与我的预期完全不同。我正在寻找与在 bestbuy.com 用户界面上搜索 Iphone 后得到的相同数据。

我的回复包含一些不是 Iphone 的耳机详细信息。

我可以知道是这样吗?我需要传递哪些其他参数才能获得正确的数据。

请帮帮我。

更新:它只显示配件数据而不是 Iphone5 产品详细信息。

0 投票
1 回答
183 浏览

sparql - 百思买是否提供 SPARQL 端点/它是否支持 RDF 和/或 SPARQL?

百思买提到了对 RDF / SPARQL 的支持(请参阅https://twitter.com/LearningSPARQL/status/294082772836941825)。但是该页面已过时,我在开发文档中找不到任何有关它的信息。

0 投票
1 回答
141 浏览

best-buy-api - 使用 Best Buy API 使用 details.name 和 details.value 搜索产品

百思买搜索允许搜索在 details.name 和 details.value 字段上指定标准的产品。

然而细节是一个集合。上面的查询实际上返回的所有产品都有一个名为“processor”的明细条目和一个值为“2.4Ghz”的明细条目,但不一定在同一个明细条目中。有没有办法创建一个查询,只返回那些值和名称用于相同详细信息条目的产品?

0 投票
1 回答
97 浏览

best-buy-api - 使用 Best Buy API 按重量、长度、深度等进行搜索

百思买搜索允许搜索指定重量、深度、长度并使用 < 和 > 运算符的产品。例如:

weight<4

然而,API 似乎对这些字段和运算符使用 alpha 排序而不是实际数值比较。

例如,它会认为 11 < 4

有没有办法强制 API 正确评估这些条件?

0 投票
1 回答
2821 浏览

best-buy-api - 如何列出哪些商店有库存商品?

我正在搜索列出的仅可在店内取货但不在我所在地区的特定商品。

我想使用 API 找出哪些商店确实有该商品的库存,这样我就可以给住在其中一个地区的朋友打电话,让他​​们去取货。

那么...如何列出有特定库存商品的商店?

回答

美国的地理中心是 39°50' (39.8333), -98°35' (-98.5833)

美国的宽度约为 3,000 英里。

因此,如果我们从该点向任何方向搜索 2000 英里的半径,我们会得到:

http://api.remix.bestbuy.com/v1/stores(area(39.8333,-98.5833,2000mi))+products(sku=6461052)?format=json&pageSize=100&page=1&show=storeId,storeType,city,region,名称,products.name,products.sku,products&apiKey=YOUR_API_KEY

您会惊讶地发现,虽然圣诞节前一天有 1419 家商店有 Black Ink'd Skullcandy 耳塞,但其中 0 家有 Marth Amiibo,67 家有 Star Fox Amiibo……谁知道呢?

0 投票
1 回答
156 浏览

best-buy-api - Can I access exact stock count, open box, etc.?

I want to create an app for Best Buy employees which enables them to use their phones to look up item data instead of making them fiddle with the nearest store computer to do that. There doesn't seem to be a method in the Best Buy API to be able to access the sort of data I want (~exact stock count, etc.). I know how to see if a store does or does not have an item in stock, but not how many. Would that sort of data be too "sensitive", or is there luckily some way?

Also, if I need some kind of permission to access the data in order for the app to work in a single store, who would I need to ask? The store? Or even higher up?

0 投票
1 回答
384 浏览

best-buy-api - 百思买 - 产品 API 问题

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

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

0 投票
1 回答
93 浏览

best-buy-api - 无法使用斜杠查询 modelNumber

例如,Apple 耳机的型号为 MD827LL/A

当我查询 http://api.remix.bestbuy.com/v1/products(modelNumber=MD827LL%2FA&manufacturer=Apple&active=true&onlineAvailability=true)?show=sku,name,regularPrice,salePrice,onSale,productId,linkShareAffiliateUrl,url, customerReviewAverage,freeShipping,freeShippingEligible,onlineAvailability,inStoreAvailability,shippingCost,marketplace,manufacturer,modelNumber&pageSize=1&apiKey= {}&format=json

或者

http://api.remix.bestbuy.com/v1/products(modelNumber=MD827LL/A&manufacturer=Apple&active=true&onlineAvailability=true)?show=sku,name,regularPrice,salePrice,onSale,productId,linkShareAffiliateUrl,url,customerReviewAverage,freeShipping ,freeShippingEligible,onlineAvailability,inStoreAvailability,shippingCost,marketplace,manufacturer,modelNumber&pageSize=1&apiKey= {}&format=json

响应:“状态”:“400 错误请求”,“消息”:“无法理解”

我该如何解决?