blurb/ruby-mws — pull request #1 by pierrel (2014-02-04 19:29:27+00:00)
Title: Add product endpoint section

You can get from a list of orders to product info like this:

```
require 'ruby-mws'
mws = MWS.new (:aws_access_key_id => "[key]",:secret_access_key => "[key]",:seller_id => "[key]",:marketplace_id => "[key]")

orders = mws.orders.list_orders :last_updated_after => 1.day.ago

order_ids = if orders.orders.method_define?(:map)
orders.orders.map{|order| order.amazon_order_id}
else
[orders.orders.amazon_order_id]
end

order_items = order_ids.map{ |oid|
mws.orders.list_order_items(:amazon_order_id => oid).order_items
}.flatten

amazon_products = order_items.map{ |order_item|
mws.products.get_matching_product(:asin => order_item.asin).product
}

puts amazon_products

```

I initially started this "products" endpoint group because I thought we could get ISBNs from it but it doesn't seem to be returning them. It would be nice to be able to get isbns directly from amazon instead of having to rely on a person manually entering them. Anyway I hope this helps.