To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorKindle search
As an API consumer
I want to search for Kindle items
Because that has some business value.
- Background
-
- Given
-
the following:
@request = Sucker.new( :key => amazon_key, :secret => amazon_secret, :locale => :us)
- Scenarios
-
- Search for a Kindle edition using `binding:kindle`
-
- Given
-
the following:
@request << { :operation => 'ItemSearch', :search_index => 'Books', :power => 'deleuze binding:kindle', :response_group => 'ItemAttributes, Offers' }
- When
-
I tape:
@response = @request.get
- Then
-
I expect:
items = @response['Item'] items.size.should eql 10 items.all? do |item| item['ItemAttributes']['Binding'].should eql 'Kindle Edition' end @response['Offer'].size.should eql 0
- Search for a Kindle edition using the `KindleStore` search index
-
- Given
-
the following:
@request << { :operation => 'ItemSearch', :search_index => 'KindleStore', :keywords => 'deleuze', :response_group => 'ItemAttributes, Offers' }
- When
-
I tape:
@response = @request.get
- Then
-
I expect:
items = @response['Item'] items.size.should eql 10 items.all? do |item| item['ItemAttributes']['Binding'].should eql 'Kindle Edition' end @response['Offer'].size.should eql 0
Last published over 7 years ago by hakanensari.