Documentation ¶
Overview ¶
Package crmassociations covers the CRM Associations API is used to manage associations between objects in the HubSpot CRM. This includes the association between a contact and its company, between a company and a parent or child company, between deal and a company or contact, or between a ticket and a contact or company, as well as associations between engagements and other objects.
Package crmassociations covers the CRM Associations API is used to manage associations between objects in the HubSpot CRM. This includes the association between a contact and its company, between a company and a parent or child company, between deal and a company or contact, or between a ticket and a contact or company, as well as associations between engagements and other objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Associations ¶
type Associations struct { Results []int64 `json:"results"` HasMore bool `json:"hasMore"` Offset int64 `json:"offset"` }
Associations is a struct generated from the HubSpot API
type CRMAssociations ¶
CRMAssociations contains the elements to communicate with the HubSpot CRM Associations endpoints.
func New ¶
func New(c *client.Client) *CRMAssociations
New creates a new instance of the CRMAssociations service with default settings.
func (*CRMAssociations) GetAssociationsForCRMObject ¶
func (c *CRMAssociations) GetAssociationsForCRMObject(objectID string, definitionID string) ([]int64, error)
GetAssociationsForCRMObject gets the IDs of objects associated with the given object, based on the specified association type.
func (*CRMAssociations) WithLimit ¶
func (c *CRMAssociations) WithLimit(limit int64) *CRMAssociations
WithLimit sets a limit value returning a CRMAssociations pointer for chaining.
func (*CRMAssociations) WithOffSet ¶
func (c *CRMAssociations) WithOffSet(offset int64) *CRMAssociations
WithOffSet sets an offset value returning a CRMAssociations pointer for chaining.