def asin_search(asin, weight=HEAVY, offer_page=nil, offerings=nil,
&block)
url = AWS_PREFIX + "?t=%s&AsinSearch=%s&f=xml&type=%s&dev-t=%s"
@type = WEIGHT[weight]
unless offerings.nil?
url << get_offer_string(offerings)
url << "&offerpage=%s" % (offer_page || 1)
end
asin.gsub!(/ /, ',') if asin.is_a? String
asin = asin.join(',') if asin.is_a? Array
if asin.count(',') >= (weight ? MAX_HEAVY_ASINS : MAX_LITE_ASINS)
raise TermError, "too many ASINs"
end
search(url % [@id, asin, @type, @token], &block)
end