-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add ability to list company associations #27
base: main
Are you sure you want to change the base?
Add ability to list company associations #27
Conversation
…es-for-company-object Add default properties for company object
f184d47
to
32633a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e96a606
to
02fe5fe
Compare
02fe5fe
to
b66728d
Compare
Sorry it took so long. I think I have revised the PR as you proposed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
It seems that only company_model.go has the previous modification left, so could you please check it again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I could unmarshal to HsInt
using #29, but is this necessary?
Hi, @joidegn ! |
Is this going to make it in? |
What to do
Adds the ability to GET company associations
https://developers.hubspot.com/docs/api/crm/associations
Example curl:
{"results":[{"id":"8616142197","type":"parent_to_child_company"},{"id":"8921827721","type":"parent_to_child_company"},{"id":"5593726386","type":"child_to_parent_company"},{"id":"5593726386","type":"company_to_company"},{"id":"8616142197","type":"company_to_company"},{"id":"8921827721","type":"company_to_company"}]}%
This PR is stacked on top of #26
Background
This uses the (I think undocumented)
GET /crm/v3/objects/{object-type}/{object-ID}/associations/{to-object-type}
endpointAcceptance criteria
The user can GET company associations with other objects