Class: Amazon::AWS::ItemLookup

Inherits:
Operation show all
Defined in:
lib/ruby-paa/aws.rb

Overview

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).

Direct Known Subclasses

SellerListingLookup

Constant Summary

Constants inherited from Operation

Operation::OPERATIONS

Instance Attribute Summary

Attributes inherited from Operation

#kind, #params, #response_group

Instance Method Summary collapse

Methods inherited from Operation

#batch, #query_parameters, #response_group_orig=

Constructor Details

#initialize(id_type, parameters) ⇒ ItemLookup

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).



982
983
984
# File 'lib/ruby-paa/aws.rb', line 982

def initialize(id_type, parameters)
 super( { 'IdType' => id_type }.merge( parameters ) )
end