Skip to content

Adding debug mode and some more documentation

Compare
Choose a tag to compare
@jpetrucciani jpetrucciani released this 25 Apr 13:34
· 381 commits to master since this release

A basic version of this (returns url called, data passed to the api call, and headers) should now be available in pypi version 3.1.1.

You can access this by passing a truthy value to the kwarg debug to either the constructor of a client or by passing that to the call you're making.

example:

deals_client = DealsClient(api_key=API_KEY, debug=True)
deals_client.get_all(propertiesWithHistory="Amount")

# or this works too
deals_client = DealsClient(api_key=API_KEY)
deals_client.get_all(propertiesWithHistory="Amount", debug=True)

Thanks @guysoft for the suggestion and some documentation for the readme!