README.md in peddler-1.4.1 vs README.md in peddler-1.5.0

- old
+ new

@@ -69,10 +69,12 @@ ) ``` Once you have a client with valid credentials, you should be able to make requests to the API. Clients map operation names in a flat structure. Methods have positional arguments for required input and keyword arguments for optional parameters. Both method and argument names are underscored but otherwise identical to the names of the corresponding operations and parameters documented in the API. +### Parser + Peddler wraps successful responses in a parser that handles both XML documents and flat files: ```ruby parser = client.get_service_status parser.parse # will return a Hash or CSV object @@ -84,10 +86,16 @@ MWS::Orders::Client.parser = MyParser ``` For a sample implementation, see my [MWS Orders](https://github.com/hakanensari/mws-orders) library. -Finally, you can handle network errors caused by throttling or other transient issues by defining an error handler. +### Debugging + +To introspect requests, set the `EXCON_DEBUG` environment variable to a truthy value. + +### Errors + +Handle network errors caused by throttling or other transient issues by defining an error handler. ```ruby MWS::Orders::Client.on_error do |e| if e.response.status == 503 logger.warn e.response.message