README.md in peddler-0.6.3 vs README.md in peddler-0.6.4

- old
+ new

@@ -1,34 +1,34 @@ # Peddler -![Peddler][1] +[![Build Status][travis]][badge] -**Peddler** is a full-featured Ruby interface to the [Amazon Marketplace Web -Service (MWS) APIs][2]. +![Peddler][mussels] -## Usage +**Peddler** is a full-featured Ruby interface to the [Amazon Marketplace Web Service (MWS) APIs][docs]. +## Configuration + Require the library: ```ruby require 'peddler' ``` -Alternatively, require a particular API only: +Or require an individual API: ```ruby require 'mws/orders' ``` -Instantiate a client with the ISO 3166-1 two-letter country code of the -marketplace and your seller credentials: +Instantiate a client to a particular API with the ISO 3166-1 two-letter country code of the marketplace and your seller credentials: ```ruby client = MWS::Orders::Client.new('GB', 'key', 'secret', 'merchant_id') ``` -Alternatively, set your credentials as environment variables in your shell: +You may also set the credentials as environment variables in your shell: ```sh export AWS_ACCESS_KEY_ID=key export AWS_SECRET_ACCESS_KEY=secret export MERCHANT_ID=merchant_id @@ -38,222 +38,125 @@ ```ruby client = MWS::Orders::Client.new('US') ``` -### Feeds +When developing, you may set the `EXCON_DEBUG` environment variable to debug the HTTP exchange. -The MWS Feeds API lets you upload inventory and order data to Amazon. You can -also use this API to get information about the processing of feeds. +## Usage -[API methods are available on the client][3]. +### Feeds -Instantiate a client: +The MWS Feeds API lets you upload inventory and order data to Amazon. You can also use this API to get information about the processing of feeds. -```ruby -client = MWS::Feeds::Client.new('GB') -``` +[Read the client API methods.][feeds-api] -#### Submit Feed +### Fulfillment Inbound Shipment -Submit a feed: +With the Fulfillment Inbound Shipment API, you can create and update inbound shipments of inventory in the Amazon Fulfillment Network. You can also request lists of inbound shipments or inbound shipment items based on criteria that you specify. -```ruby -client.submit_feed(xml, '_POST_PRODUCT_DATA_') -``` +While this API is not implemented yet, you may still use the raw client like so: -#### Feed Submission List - -List past feed submissions: - ```ruby -# See the API for all available parameters for this and other methods. -client.get_feed_submissions -``` - -List the next page of feed submissions: - -```ruby -client.get_feed_submissions_by_next_token -``` - -#### Feed Submission Count - -Get the feed submission count: - -```ruby -client.get_feed_submission_count(submitted_from_date: 1.day.ago) -``` - -#### Feed Submission Result - -Get the processing report for a submitted feed: - -```ruby -client.feed_submission_result('123456') -``` - -#### Feed Submissions - -Cancel one or more feed submissions: - -```ruby -client.cancel_feed_submissions(submitted_to_date: 1.day.ago) -`` - -### Fulfillment Inbound Shipment - -This API is not implemented yet. You can still use the raw client like so: - -```ruby client = MWS::FulfillmentInboundShipment::Client.new('GB') ``` Pull requests are welcome! ### Fulfillment Inventory -This API is not implemented yet. You can still use the raw client like so: +The Fulfillment Inventory API lets you see what is available in your inventory. It's a real-time reporting mechanism that returns your current or recently-changed inventory supply in the Amazon fulfillment network. +While this API is not implemented yet, you may still use the raw client like so: + ```ruby client = MWS::FulfillmentInventory::Client.new('GB') ``` Pull requests are welcome! ### Fulfillment Outbound Shipment -This API is not implemented yet. You can still use the raw client like so: +The Fulfillment Outbound Shipment API is designed to help you integrate Fulfillment by Amazon with any payment processing application or inventory management system currently in use. +While this API is not implemented yet, you may still use the raw client like so: + ```ruby client = MWS::FulfillmentOutboundShipment::Client.new('GB') ``` Pull requests are welcome! ### Off Amazon Payments -This API is not implemented yet. You can still use the raw client like so: +The Off-Amazon Payments API helps you to process payments for purchases made by buyers using Amazon Payments on your website. This API enables you to programmatically retrieve shipping and payment information provided by the buyer from their Amazon account and to authorize, capture, and refund funds to enable a variety of payments scenarios. +While this API is not implemented yet, you may still use the raw client like so: + ```ruby client = MWS::OffAmazonPayments::Client.new('GB') ``` Pull requests are welcome! ### Orders -With the MWS Orders API, you can list orders created or updated during a time -frame you specify or retrieve information about specific orders. +With the MWS Orders API, you can list orders created or updated during a time frame you specify or retrieve information about specific orders. -[API methods are available on the client][4]. +[Read the client API methods.][orders-api] -Instantiate a client: +### Products -```ruby -client = MWS::Orders::Client.new('GB') -``` +The Products API helps you get information to match your products to existing product listings on Amazon Marketplace websites and to make sourcing and pricing decisions for listing those products on Amazon Marketplace websites. -#### Orders +While this API is not implemented yet, you may still use the raw client like so: -List orders: - ```ruby -# See the API for all available parameters. -client.list_orders( - created_after: 1.week.ago, - order_status: %w(Pending Unshipped) -) -``` - -List the next page of orders: - -```ruby -client.list_orders_by_next_token -``` - -Get one or more orders based on their order numbers: - -```ruby -client.get_order('123-1234567-1234567') -``` - -All above queries will return an enumerable list of orders. - -#### Order Items - -List order items based on an order number you specify: - -```ruby -client.list_order_items('123-1234567-1234567') -``` - -List the next page of order items: - -```ruby -client.list_order_items_by_next_token -``` - -All above queries will return an enumerable list of order items. - -#### Service Status - -Check the operational status of the API: - -```ruby -client.get_service_status -``` - -### Products - -This API is not implemented yet. You can still use the raw client like so: - -```ruby client = MWS::Products::Client.new('GB') ``` Pull requests are welcome! ### Recommendations -This API is not implemented yet. You can still use the raw client like so: +The Recommendations API enables you to programmatically retrieve Amazon Selling Coach recommendations by recommendation category. A recommendation is an actionable, timely, and personalized opportunity to increase your sales and performance. +While this API is not implemented yet, you may still use the raw client like so: + ```ruby client = MWS::Recommendations::Client.new('GB') ``` Pull requests are welcome! ### Reports -This API is not implemented yet. You can still use the raw client like so: +The Reports API lets you request reports about your inventory and orders. -```ruby -client = MWS::Reports::Client.new('GB') -``` +[Read the client API methods.][reports-api] -Pull requests are welcome! - ### Sellers -This API is not implemented yet. You can still use the raw client like so: +The Sellers API lets sellers retrieve information about their seller account, such as the marketplaces they participate in. -```ruby -client = MWS::Sellers::Client.new('GB') -``` +[Read the client API methods.][sellers-api] -Pull requests are welcome! - ### Subscriptions -This API is not implemented yet. You can still use the raw client like so: +The Amazon MWS Subscriptions API enables you to subscribe to receive notifications that are relevant to your business with Amazon. With the operations in the Subscriptions API section, you can register to receive important information from Amazon without having to poll the Amazon MWS service. Instead, the information is sent directly to you when an event occurs to which you are subscribed. +While this API is not implemented yet, you may still use the raw client like so: + ```ruby client = MWS::Subscriptions::Client.new('GB') ``` Pull requests are welcome! -[1]: http://f.cl.ly/items/0W3V0A1Z110Q0x461b3H/mussels.jpeg -[2]: https://developer.amazonservices.com/gp/mws/docs.html -[3]: https://github.com/papercavalier/peddler/blob/master/lib/mws/feeds/client.rb -[4]: https://github.com/papercavalier/peddler/blob/master/lib/mws/orders/client.rb +[travis]: https://travis-ci.org/papercavalier/peddler.png +[badge]:https://travis-ci.org/papercavalier/peddler +[mussels]: http://f.cl.ly/items/0W3V0A1Z110Q0x461b3H/mussels.jpeg +[docs]: https://developer.amazonservices.com/gp/mws/docs.html +[feeds-api]: https://github.com/papercavalier/peddler/blob/master/lib/mws/feeds/client.rb +[orders-api]: https://github.com/papercavalier/peddler/blob/master/lib/mws/orders/client.rb +[reports-api]: https://github.com/papercavalier/peddler/blob/master/lib/mws/reports/client.rb +[sellers-api]: https://github.com/papercavalier/peddler/blob/master/lib/mws/sellers/client.rb