# File lib/amazon/shoppingcart.rb, line 206 def add_items(asin_list, quantity) check_minimum_quantity(quantity, 1) url = AWS_PREFIX + "?ShoppingCart=add&f=xml&dev-t=%s&t=%s&sims=true" url = url % [@token, @id] asin_list = [asin_list] if asin_list.is_a? String asin_list.each { |asin| url << "&Asin.%s=%s" % [asin, quantity] } # FIXME: add exchange items with &ExchangeId.[EXCHANGE_ID]=1 url = check_cart(url) @page = search(url) parse end