README.md in access-2.0.37 vs README.md in access-2.0.38
- old
+ new
@@ -27,16 +27,17 @@
- `access_token` **Required**
- `api_environment`: Set as `'demo'` or `'production'`. Default is `'demo'`.
- `return_json`: Set as `'true'` or `'false'`. Default is `'false'` return ruby objects.
- `hashify`: Set as `'true'` or `'false'`. Default is `'false'` return a hashed version of the json response if `return_json` is set to 'true'.
- `access_timeout`: Set as a number. Default to `'10'`.
+ - `access_debug_output`: Set as a string `'true'` or '`false`'. Default is '`false`'. When '`true`' it will write out the raw request response from the httparty call.
#### Config via Environment Variables
You can set config settings by creating environment variables called:
-`ENV['ACCESS_TOKEN']`, `ENV['ACCESS_ENVIRONMENT']`, `ENV['ACCESS_RETURN_JSON']`, `ENV['ACCESS_HASHIFY']`, `ENV['ACCESS_TIMEOUT']`
+`ENV['ACCESS_TOKEN']`, `ENV['ACCESS_ENVIRONMENT']`, `ENV['ACCESS_RETURN_JSON']`, `ENV['ACCESS_HASHIFY']`, `ENV['ACCESS_TIMEOUT']`. `ENV['ACCESS_DEBUG_OUTPUT']`
#### Config via Initializer
You can also create an initializer file to set up a config
@@ -50,14 +51,20 @@
`Access.config.access_token = ENV['ACCESS_TOKEN']`
### Config via Params
+`api_environment` can be overwritten by passing in by passing the param `api_environment` to the end of any call that accepts options.
+
+`access_timeout` can be overwritten by passing in by passing the param `access_timeout` to the end of any call that accepts options.
+
+`access_token` can be overwritten by passing in by passing the param `access_token` to the end of any call that accepts options.
+
`return_json` can be overwritten by passing in by passing the param `return_json` to the end of any call that accepts options.
`hashify` can be overwritten by passing in by passing the param `hashify` to the end of any call that accepts options.
-`access_token` can be overwritten by passing in by passing the param `access_token` to the end of any call that accepts options.
+`access_debug_output` can be overwritten by passing in by passing the param `access_debug_output` to the end of any call that accepts options.
###Making Calls
####Offer