Versions in this module Expand all Collapse all v0 v0.1.2 Feb 2, 2022 v0.1.1 Feb 2, 2022 Changes in this version + const CRMAssociationAdvisorToCompany + const CRMAssociationBoardMemberToCompany + const CRMAssociationBusinessOwnerToCompany + const CRMAssociationChildCompanyToParentCompany + const CRMAssociationCompanyToAdvisor + const CRMAssociationCompanyToBoardMember + const CRMAssociationCompanyToBusinessOwner + const CRMAssociationCompanyToContact + const CRMAssociationCompanyToContractor + const CRMAssociationCompanyToDeal + const CRMAssociationCompanyToEngagement + const CRMAssociationCompanyToManager + const CRMAssociationCompanyToPartner + const CRMAssociationCompanyToReseller + const CRMAssociationCompanyToTicket + const CRMAssociationContactToCompany + const CRMAssociationContactToDeal + const CRMAssociationContactToEngagement + const CRMAssociationContactToTicket + const CRMAssociationContractorToCompany + const CRMAssociationDealToCompany + const CRMAssociationDealToContact + const CRMAssociationDealToEngagement + const CRMAssociationDealToLineItem + const CRMAssociationDealToTicket + const CRMAssociationEngagementToCompany + const CRMAssociationEngagementToContact + const CRMAssociationEngagementToDeal + const CRMAssociationEngagementToTicket + const CRMAssociationLineItemToDeal + const CRMAssociationManagerToCompany + const CRMAssociationParentCompanyToChildCompany + const CRMAssociationPartnerToCompany + const CRMAssociationResellerToCompany + const CRMAssociationTicketToCompany + const CRMAssociationTicketToContact + const CRMAssociationTicketToDeal + const CRMAssociationTicketToEngagement + type AssociatedCompany struct + CompanyID int + PortalID int + Properties []Property + type Association struct + AssociationType string + FromObjectID int + Timestamp int64 + ToObjectID int + type AssociationCreateFailure struct + Association Association + FailReason string + Message string + type Associations struct + AssociatedCompanyIds []int + AssociatedDealIds []int + AssociatedVids []int + type CRMAssociations struct + func (ca CRMAssociations) Create(data CRMAssociationsRequest) error + func (ca CRMAssociations) Delete(data CRMAssociationsRequest) error + type CRMAssociationsRequest struct + Category string + DefinitionID int + FromObjectID int + ToObjectID int + type Client struct + func NewClient(config ClientConfig) Client + func (c Client) CRMAssociations() CRMAssociations + func (c Client) Companies() Companies + func (c Client) Contacts() Contacts + func (c Client) Deals() Deals + func (c Client) Request(method, endpoint string, data, response interface{}) error + type ClientConfig struct + APIHost string + APIKey string + DialTimeout time.Duration + HTTPTimeout time.Duration + OAuthToken string + TLSTimeout time.Duration + func NewClientConfig() ClientConfig + type Companies struct + func (c Companies) Create(data CompaniesRequest) (CompaniesResponse, error) + func (c Companies) Delete(companyID int) error + func (c Companies) Get(companyID int) (CompaniesResponse, error) + func (c Companies) Update(companyID int, data CompaniesRequest) (CompaniesResponse, error) + type CompaniesRequest struct + Properties []Property + type CompaniesResponse struct + CompanyID int + IsDeleted bool + PortalID int + Properties CompanyProperties + type CompanyProperties struct + CreateDate ResponseProperty + Description ResponseProperty + Name ResponseProperty + type ContactProperty struct + Value string + Versions []struct{ ... } + type Contacts struct + func (c Contacts) Create(data ContactsRequest) (ContactsResponse, error) + func (c Contacts) CreateOrUpdate(email string, data ContactsRequest) (CreateOrUpdateContactResponse, error) + func (c Contacts) Delete(contactID int) error + func (c Contacts) Get(contactID int) (ContactsResponse, error) + func (c Contacts) GetByEmail(email string) (ContactsResponse, error) + func (c Contacts) Update(contactID int, data ContactsRequest) error + func (c Contacts) UpdateByEmail(email string, data ContactsRequest) error + type ContactsRequest struct + Properties []Property + type ContactsResponse struct + AssociatedCompany AssociatedCompany + CanonicalVid int + FormSubmissions []interface{} + IdentityProfiles []IdentityProfile + IsContact bool + MergeVids []int + PortalID int + ProfileToken string + ProfileURL string + Properties map[string]ContactProperty + Vid int + type CreateOrUpdateContactResponse struct + IsNew bool + Vid int + type DealProperties struct + Amount ResponseProperty + Closedate ResponseProperty + Createdate ResponseProperty + Dealname ResponseProperty + Dealstage ResponseProperty + Dealtype ResponseProperty + HsCreatedate ResponseProperty + HubspotOwnerID ResponseProperty + Pipeline ResponseProperty + type Deals struct + func (d Deals) Create(data DealsRequest) (DealsResponse, error) + func (d Deals) Delete(dealID int) error + func (d Deals) Get(dealID int) (DealsResponse, error) + func (d Deals) Update(dealID int, data DealsRequest) (DealsResponse, error) + type DealsRequest struct + Associations Associations + Properties []Property + type DealsResponse struct + AssociationCreateFailures []AssociationCreateFailure + Associations Associations + DealID int + IsDeleted bool + PortalID int + Properties DealProperties + type DeleteContactResponse struct + Deleted bool + Reason string + Vid int + type ErrorResponse struct + Message string + Status string + type IdentityProfile struct + Identities []struct{ ... } + Vid int + type Property struct + Name string + Property string + Value interface{} + type ResponseProperty struct + Name string + Source string + SourceID string + SourceVid []int + Timestamp int64 + Value string + Versions []ResponseProperty