Skip to content

Releases: jpetrucciani/hubspot3

Code Format Standardization, Adding get recently created/modified to DealsClient

01 Jun 16:32
Compare
Choose a tag to compare

This release should now be available in pypi version 3.1.2.

This release adds just a couple of new methods to the DealsClient:

DealsClient.get_recently_created
DealsClient.get_recently_modified

which use the following endpoints, with corresponding options being kwargs:
https://developers.hubspot.com/docs/methods/deals/get_deals_created
https://developers.hubspot.com/docs/methods/deals/get_deals_modified

Adding debug mode and some more documentation

25 Apr 13:34
Compare
Choose a tag to compare

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!