It adds methods for two endpoints (merge and update_by_email).
Following #39 the naming conventions for the methods have been unified. The old methods raise a deprecation warning and call their respective new method. All methods in the file have been reordered, so related methods like update_by_email and update_by_id follow each other and all deprecated methods are moved to the end of the file.
Following #40 the tests have been rewritten as unit tests.
Also a small bugfix for hubspot3/base.py, where the json.loads wasn't wrapped by the try-except in case the data content is bytes.
This PR extends the contacts API.
merge
andupdate_by_email
).update_by_email
andupdate_by_id
follow each other and all deprecated methods are moved to the end of the file.Also a small bugfix for hubspot3/base.py, where the
json.loads
wasn't wrapped by the try-except in case thedata
content is bytes.