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

Use crm associations endpoints #210

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

fonji
Copy link
Contributor

@fonji fonji commented Nov 21, 2019

Associations APIs currently used by this gem are deprecated, they have to be replaced before "early 2020".
See #207 and Hubspot source

This PR adds Hubspot::Association using the CRM Associations API, and uses it.

3 => Hubspot::Contact,
4 => Hubspot::Deal,
5 => Hubspot::Company,
6 => Hubspot::Deal
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use key: value for integers

DEAL_TO_CONTACT = 3
CONTACT_TO_DEAL = 4
DEAL_TO_COMPANY = 5
COMPANY_TO_DEAL = 6
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the bare minimum, the long list is long and is here.
I guess we can make this list grow with time?

@fonji
Copy link
Contributor Author

fonji commented Dec 11, 2019

@uyermolkin-hubspot any chance you could review this? As you just merged a PR 😇

@fonji fonji force-pushed the use_crm_associations_endpoints branch from b806d92 to 9f29322 Compare December 12, 2019 09:02
@joshuasiler
Copy link

Is this project still maintained? Would really like to see this merged

@fonji
Copy link
Contributor Author

fonji commented May 21, 2021

It doesn't seem so.
You're welcome to use our fork https://github.com/captaincontrat/hubspot-api-ruby

Also, there is now an official gem https://github.com/HubSpot/hubspot-api-ruby
It automatically generated and so is up to date with API v3.
But it is really verbose

@joshuasiler
Copy link

Thanks.

The new official gem looks awful, I'd write the interface myself before using that.

@Intrepidd
Copy link

👋 I have the same issue, official API is unusable

However for me the associations delete API just does not work, even with CURL in the CLI, hubspot support told me they are looking into it.

Does it work for any of you ?

@fonji
Copy link
Contributor Author

fonji commented Jun 15, 2022

I'm sorry we don't currently remove associations, at least not automatically.

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