ApiBucket
We can use sevral APIs with common interface.
- APIs
- Amazon ECS
- iTunes
- Rakuten(楽天)
- Yahoo Auction
Installation
Add this line to your application’s Gemfile:
gem 'api_bucket'
And then execute:
$ bundle
Or install it yourself as:
$ gem install api_bucket
Usage
use Amazon
```ruby require ‘api_bucket’ require ‘api_bucket/amazon’
ApiBucket::Amazon::Client.configure do |o| o.a_w_s_access_key_id = ‘hogehoge’ o.a_w_s_secret_key = ‘mogemoge’ o.associate_tag = ‘nakajijapan’ end
service = ApiBucket::Service::instance(:amazon) res = service.item_search(‘ruby’)
res.items.each do |item| p item.product_code p item.title end ```
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request