如何在 Rails 应用程序中与亚马逊商品广告 API 交互?
我正在构建一个 Rails Web 应用程序,想知道获取亚马逊根据搜索词返回的产品列表的最佳方式是什么?
例如,如果我向亚马逊发送“iphone”一词,我会从亚马逊返回一份 iPhone 列表。
I'm building a Rails web app and was wondering what is the best way to get a list of products that Amazon would return based on a search term?
For example, if I sent amazon the term "iphone", I'd get a list of iPhones back from Amazon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我一直使用 amazon-ecs gem。尽管有这个名称,但它看起来仍在积极开发中(最后更新时间为 2009 年 8 月 27 日)。
http://github.com/jugend/amazon-ecs
这是一篇可能有帮助的博客文章您正在路上:
http://www.pluitsolutions.com/projects/amazon-ecs
I've always used the amazon-ecs gem. Despite the name, it looks like it's still under active development (last updated August 27th, 2009).
http://github.com/jugend/amazon-ecs
Here is a blog post that might help you on your way:
http://www.pluitsolutions.com/projects/amazon-ecs
因此,Ruby/AWS 库是最佳选择。 这里有一个非常好的教程
Pablo,ruby-aaws 对我来说几乎是开箱即用的。我只需设置一个 .amazonrc 文件,其中包含我的亚马逊附属 ID 以及 AWS 公钥和密钥等配置选项。
So the Ruby/AWS library is the way to go. There is a pretty good tutorial here
Pablo, ruby-aaws worked nearly out of the box for me. I just had to setup a .amazonrc file with the configuration options like my amazon affiliate id and AWS public and secret keys.
Ruby/AWS 库(gem:ruby-aaws) 似乎可以做到这一点。示例不多,但通过一些代码搜索,我相信您可以找到一些东西。
The Ruby/AWS library (gem: ruby-aaws) seems to do it. Not much in the way of examples, but with some code searches I'm sure you can turn up something.
另一个可能执行此操作的库是 amazon-product-advertising-api,但是我不能对此说什么,因为我还没有尝试过。
Another pottential library to do this is amazon-product-advertising-api, but I cannot say anything else about it as I haven't tried it.
我其次是 Ruby/AWS。它支持 ListSearch 和 ListLookup。 Amazon-ecs 对 API 的支持相对较少。
I second Ruby/AWS. It has support for ListSearch and ListLookup. Amazon-ecs has comparatively less support for the API.