Logo: Relish

  1. Sign in

Project: Sucker

Alternate versions

As an API consumer

I want to look up alternate versions of an item

Because that has some business value.

Background
Given
the following:
@request = Sucker.new(
  :key    => amazon_key,
  :secret => amazon_secret,
  :locale => :us)
Scenarios
Alternate versions response group
Given
the following:
@request << {
  :operation         => 'ItemLookup',
  :id_type           => 'ASIN',
  :item_id           => '0679753354',
  :response_group    => 'AlternateVersions' }
When
I tape:
@response = @request.get
Then
I expect:
@response['AlternateVersion'].size.should be > 1

Last published over 5 years ago by hakanensari.