带有 R 的亚马逊产品 API
我想使用 R 向 Amazon Product API 服务发送请求。
有没有办法使用 R 对 Amazon 产品 API 进行身份验证和查询,而不会出现以下错误:
“我们计算的请求签名与您提供的签名不匹配。请检查您的 AWS 秘密访问密钥和签名方法。有关详细信息,请参阅服务文档” ”。
I would like to use R to send requests to the Amazon Product API service.
Is there a way to authenticate and query the Amazon Product API with R without getting the following error:
"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
试试这个
这应该使用产品广告 API 执行搜索,我想您是指这个。
您需要提供 AWSAccessKeyId 和 AWSsecretkey,
可以在以下位置获取:http:// /docs.amazonwebservices.com/AWSECommerceService/2011-08-01/GSG/
我们通过运行此代码获得的 URL 不会提供签名地址。要获取签名地址,请使用以下网址并将 URL 粘贴到此处,然后单击“显示签名 URL”。
http://associates-amazon.s3.amazonaws.com/signed -requests/helper/index.html
Try this
This should perform a search using the Product Advertising API, which I think you mean.
You need to supply the AWSAccessKeyId and AWSsecretkey,
which can be acquired on: http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/GSG/
The URL which we get from running this code wont give a signature address. To get a signature address use the following web address and paste the URL over there and click on Display Signed URL.
http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html
请参阅这篇文章 以及亚马逊的 签名请求帮助程序。这篇文章以及我分享的两个链接帮助我开始使用亚马逊的产品广告 API。
See this post as well as Amazon's Signed Requests Helper. This posting, as well as the two links I've shared helped me get up and running with Amazon's Product Advertising API.
我是新人,没有足够的“代表”来发表评论,但在 Micha 的回答中,该区域的签名后需要有一个逗号(我已添加逗号):
I am new and I don't have enough "rep" to comment, but in Micha's answer there needs to be a comma after Signature in this area (I have added the comma):
检查 http://www.omegahat.org/ 。那里有几个与 Amazon 相关的软件包,即使 Product API 可能不在其中,您也应该能够复制基本功能。
Check http://www.omegahat.org/ . There are several Amazon-related packages there, and even if Product API might not be among these, you should be able to copy the basic functions.
您对哪个亚马逊产品 API 感兴趣?
我从未见过“产品广告 API”的界面!对于 AWS,您可以使用 CRAN 上的 AWS 工具包: http: //cran.r-project.org/web/packages/AWS.tools/index.html
which Amazon Product API you are interested in?
I never saw an interface for the "Product Advertising API"! For AWS you can use the package AWS tools package at CRAN: http://cran.r-project.org/web/packages/AWS.tools/index.html