Class Amazon::AWS::ItemLookup
In: lib/amazon/aws.rb
Parent: Operation

This class of look-up deals with searching for specific items by some uniquely identifying attribute, such as the ASIN (*A*mazon *S*tandard *I*tem *N*umber).

Methods

new  

Public Class methods

Look up a specific item in the AWS catalogue. id_type is the type of identifier and parameters is a hash that identifies the item to be located and narrows the scope of the search.

Example:

 il = ItemLookup.new( 'ASIN', { 'ItemId' => 'B000AE4QEC'
                                'MerchantId' => 'Amazon' } )

In the above example, we search for an item, based on its ASIN. The use of MerchantId restricts the offers returned to those for sale by Amazon (as opposed to third-party sellers).

[Source]

# File lib/amazon/aws.rb, line 985
      def initialize(id_type, parameters)
        super( { 'IdType' => id_type }.merge( parameters ) )
      end

[Validate]