Amazonの「Product Advertising API」をRubyで使うには
Amazonの「Product Advertising API」は、2011年10月26日にAPI仕様が変更されています。ググると、古い情報がヒットするので注意して、2011年10月26日以降の情報を得るようにしましょう。
参考: Product Advertising API の仕様変更について
参考: 開発者ガイド(日本語参考訳)
参考: Amazonの商品広告をサイトに表示しましょう!
アカウント作成
アカウントを作成して、アクセスキーとシークレットアクセスキーを得る必要があります。
こちらからアカウントを作成します。
https://affiliate-program.amazon.com/gp/flex/advertising/api/sign-in-jp.html
ライブラリ
こちらで様々な言語向けライブラリが紹介されている。
http://aws.amazon.com/code/Product%20Advertising%20API?_encoding=UTF8&jiveRedirect=1
ruby-aaws 0.7.0 を使ってみる
ruby-aawsは、2010年3月にバージョン0.8.1で更新が止まっている。gemでインストールされるのは、バージョン0.7.0。こんな状況なので、どうかと思うが。。。とりあえず、インストールしてみる。
$ sudo gem install ruby-aaws Fetching: ruby-aaws-0.7.0.gem (100%) Successfully installed ruby-aaws-0.7.0 1 gem installed Installing ri documentation for ruby-aaws-0.7.0... Installing RDoc documentation for ruby-aaws-0.7.0...
力尽きた。。。(はやっ!)