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

0.1.9 Add 'update_or_create' method to Contact class #6

Merged
merged 7 commits into from
Feb 14, 2023

Conversation

oroth8
Copy link
Owner

@oroth8 oroth8 commented Feb 14, 2023

This method allows the use of querying the Hubspot api via contact email.

  • If a record is returned on initial query, then the hubspot contact record is updated with the passed body
  • If a a record in not returned on initial query, then a contact record is created in hubspot with the passed body

The parse_response method was adjusted to handle 404 errors to raise a EasyHubspot::HubspotApiError

This PR contains specs for the feature and additional fixtures.

@oroth8 oroth8 self-assigned this Feb 14, 2023
@oroth8 oroth8 changed the title Add 'update_or_create' method to Contact class 0.1.9 Add 'update_or_create' method to Contact class Feb 14, 2023
@oroth8 oroth8 merged commit f7f1a1c into main Feb 14, 2023
@oroth8 oroth8 deleted the add-update_or_create-method branch February 14, 2023 20:21
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.

1 participant