AmazonMwsProducts
A client for the AmazonMWS Products API as defined by:
Installation
Add this line to your application's Gemfile:
gem 'amazon_mws_products'
And then execute:
$ bundle
Or install it yourself as:
$ gem install amazon_mws_products
Usage
require 'amazon_mws_products'
require 'ostruct'
account = OpenStruct.new(seller_id: "your mws seller id",
aws_access_key_id: "your mws access key",
marketplace_id: "the marketplace id",
secret_access_key: "your secret access key")
client = AmazonMwsProducts::ListMatchingProducts.new(account: account,
query: "star wars",
query_context_id: "Toys")
response = client.execute # response body will be a Nokogiri::XML::Document
puts response.body.to_xml
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
AmazonMwsProducts is released under the MIT license: