Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact endpoints and tests #45

Merged

Conversation

rheinwerk-mp
Copy link
Contributor

This PR extends the contacts API.

  • It adds methods for two endpoints (merge and update_by_email).
  • Following Naming Conventions and Deprecation Policy #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 Running tests not against the live HubSpot demo account #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.

rheinwerk-mp and others added 29 commits June 27, 2019 11:25
…ods as deprecated. Also changed docstrings to use imperative.
# Conflicts:
#	hubspot3/test/conftest.py
@jpetrucciani
Copy link
Owner

Awesome - I'll get this reviewed and merged soon!

@jpetrucciani jpetrucciani merged commit f52da5a into jpetrucciani:master Jul 1, 2019
@jpetrucciani
Copy link
Owner

This is now merged, and it is live on pip as version 3.2.18!

Thanks again for your contributions! 😄

@W1ldPo1nter W1ldPo1nter deleted the feature/contact_endpoints branch July 2, 2019 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants