Logo: Relish

  1. Sign in

Project: Sucker

Images

As an API consumer

I want to look up product images

Because that has some business value.

Background
Given
the following:
@request = Sucker.new(
  :key    => amazon_key,
  :secret => amazon_secret,
  :locale => :us)
Scenarios
Look up images
Given
the following:
@request << {
  :operation      => 'ItemLookup',
  :id_type        => 'ASIN',
  :item_id        => '0394751221',
  :response_group => 'Images' }
When
I tape:
@response = @request.get
Then
I expect:
image_set = @response['ImageSet'].first
image_set.should have_key 'SwatchImage'
image_set.should have_key 'SmallImage'
image_set.should have_key 'ThumbnailImage'
image_set.should have_key 'TinyImage'
image_set.should have_key 'MediumImage'
image_set.should have_key 'LargeImage'

Last published over 5 years ago by hakanensari.