Skip to content

Instantly share code, notes, and snippets.

@taroyanaka
Last active August 2, 2018 12:35
Show Gist options
  • Save taroyanaka/5029d040bce91348803b49552c28be6c to your computer and use it in GitHub Desktop.
Save taroyanaka/5029d040bce91348803b49552c28be6c to your computer and use it in GitHub Desktop.
gem install amazon-ecs
require 'amazon/ecs'
require 'pp'
Amazon::Ecs.options = {
:associate_tag => 'foo',
:AWS_access_key_id => "bar",
:AWS_secret_key => "buz",
}
search_word = ARGV[0]
pp Amazon::Ecs.item_search(search_word, {:search_index => 'VideoGames', :response_group => 'ItemAttributes,OfferFull,Reviews', :country => 'jp' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment