Versions in this module Expand all Collapse all v0 v0.0.1 Jun 17, 2022 Changes in this version + const Conatains + const DateOfLastFormSubmission + const Eq + const Gt + const HasEvent + const HasFilledOutForm + const HasNotFilledOutForm + const InList + const IsEmpty + const IsNotEmpty + const Lt + const Lte + const NotEq + const NotHasEvent + const NotInList + const NumberOfFormsFilledOut + const PageviewContains + const PageviewEq + const PageviewMatchesRegexp + const PageviewNotContains + const PageviewNotEq + const PageviewNotMatchRegexpt + const SetAll + const SetAny + const SetEq + const SetNotAny + const SetNotEq + func CheckResponse(r *http.Response) error + func DumpRequest(req *http.Request, showBody bool) + func NewContactListOptions(listCount, offset int) *contactListsOptions + type APIKeyAuth struct + func NewAPIKeyAuth(apikey string) APIKeyAuth + func (auth APIKeyAuth) Authenticate(request *http.Request) error + type Authenticator interface + Authenticate func(request *http.Request) error + type CompaniesService service + type Company struct + CompanyId int + IsDeleted bool + PortalId int + Properties CompanyProperties + type CompanyProperties struct + type CompanyPropertiesService service + func (s *CompanyPropertiesService) Create(property ItemProperty) (*ItemProperty, error) + func (s *CompanyPropertiesService) CreateGroup(group ItemPropertyGroup) (*ItemPropertyGroup, error) + func (s *CompanyPropertiesService) Delete(name string) error + func (s *CompanyPropertiesService) DeleteGroup(name string) error + func (s *CompanyPropertiesService) GetAll() (*ItemProperties, error) + func (s *CompanyPropertiesService) GetByName(name string) (*ItemProperty, error) + func (s *CompanyPropertiesService) GetGroups() (*ItemPropertyGroups, error) + func (s *CompanyPropertiesService) Update(name string, update ItemProperty) (*ItemProperty, error) + func (s *CompanyPropertiesService) UpdateGroup(name string, update ItemPropertyGroup) (*ItemPropertyGroup, error) + type ComputedProperty string + type Contact struct + CanonicalVid int + IsContact bool + MergedVids []int + PortalID int + ProfileToken string + ProfileURL string + Properties map[string]ContactPropertyItem + Vid int + type ContactDeleteResult struct + Deleted bool + Reason string + VID int + type ContactFilterItem struct + ComputedProperty ComputedProperty + Operator ContactOperator + Property string + Type string + Value interface{} + type ContactList struct + CreatedAt UnixTime + Deleteable bool + Dynamic bool + Filters Filters + InternalListID int + ListID int + Metadata Metadata + Name string + ParentID int + PortalID int + UpdatedAt UnixTime + type ContactLists struct + Lists []ContactList + type ContactListsService service + func (s *ContactListsService) CreateContactList(name string) (*ContactList, error) + func (s *ContactListsService) GetContactList(listId int) (*ContactList, error) + func (s *ContactListsService) GetContactLists() (*ContactLists, error) + type ContactOperator FilterOperator + type ContactPropertiesService service + func (s *ContactPropertiesService) Create(property ItemProperty) (*ItemProperty, error) + func (s *ContactPropertiesService) CreateGroup(group ItemPropertyGroup) (*ItemPropertyGroup, error) + func (s *ContactPropertiesService) Delete(name string) error + func (s *ContactPropertiesService) DeleteGroup(name string) error + func (s *ContactPropertiesService) GetAll() (*ItemProperties, error) + func (s *ContactPropertiesService) GetByName(name string) (*ItemProperty, error) + func (s *ContactPropertiesService) GetGroups() (*ItemPropertyGroups, error) + func (s *ContactPropertiesService) Update(name string, update ItemProperty) (*ItemProperty, error) + func (s *ContactPropertiesService) UpdateGroup(name string, update ItemPropertyGroup) (*ItemPropertyGroup, error) + type ContactPropertyItem struct + Value string + type ContactsService service + func (s *ContactsService) Create(properties Properties) (*IdentityProfile, error) + func (s *ContactsService) CreateOrUpdateByEmail(email string, properties Properties) (*Vid, error) + func (s *ContactsService) DeleteByEmail(email string) (*ContactDeleteResult, error) + func (s *ContactsService) DeleteById(id int) (*ContactDeleteResult, error) + func (s *ContactsService) GetByEmail(email string) (*Contact, error) + func (s *ContactsService) GetByToken(token string) (*Contact, error) + func (s *ContactsService) Merge(primaryID, secondaryID int) error + func (s *ContactsService) Update(contactID int, properties Properties) error + func (s *ContactsService) UpdateByEmail(email string, properties Properties) error + type EventsFilterItem struct + EventID int + FirstOccurenceAfter UnixTime + FirstOccurenceBefore UnixTime + LastOccurenceAfter UnixTime + LastOccurenceBefore UnixTime + MaxOccurence int + MinOccurence int + Operator EventsOpeerator + type EventsOpeerator FilterOperator + type Filter struct + type FilterItem struct + Operator FilterOperator + type FilterOperator string + type Filters struct + type FormService struct + func (s *FormService) AddOption(key, value string) *FormService + func (s *FormService) AddOptions(data url.Values) *FormService + func (s *FormService) SetHsContext(context HsContext) *FormService + func (s *FormService) SetHubspotCookie(cookie string) *FormService + func (s *FormService) SetPageName(name string) *FormService + func (s *FormService) SetPageUrl(url string) *FormService + func (s *FormService) SetRemoteIpAddress(url string) *FormService + func (s *FormService) SetReturnUrl(url string) *FormService + func (s *FormService) SubmitForm(portalID int, formID string) error + type FormSubmissionFilterItem struct + AfterTimestamp UnixTime + Beforetimestamp UnixTime + FormID int + Operator FormSubmissionOperator + PageID int + type FormSubmissionOperator FilterOperator + type HsContext struct + Hutk string + IPAddress string + PageName string + PageURL string + RedirectURL string + type HubspotClient struct + BaseURL *url.URL + Companies *CompaniesService + CompanyProperties *CompanyPropertiesService + ContactLists *ContactListsService + ContactProperties *ContactPropertiesService + Contacts *ContactsService + Forms *FormService + UserAgent string + func NewHubspotApiClient(apikey string) *HubspotClient + func NewHubspotClient(auth Authenticator) *HubspotClient + func NewHubspotOAuthClient(token string) *HubspotClient + func (c *HubspotClient) Do(req *http.Request, v interface{}) error + func (c *HubspotClient) Get(url string) (*http.Request, error) + func (c *HubspotClient) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (c *HubspotClient) Post(url string, body interface{}) (*http.Request, error) + func (c *HubspotClient) RunDelete(url string, res interface{}) error + func (c *HubspotClient) RunGet(url string, res interface{}) error + func (c *HubspotClient) RunPost(url string, body, res interface{}) error + func (c *HubspotClient) RunPut(url string, body, res interface{}) error + type IdentityProfile struct + type ItemDataType string + const Date + const DateTime + const Enumeration + const Number + const String + type ItemFieldType string + const BooleanCheckboxField + const CheckboxField + const DateField + const FileField + const NumberField + const RadioField + const SelectField + const TextAreaField + const TextField + type ItemProperties []ItemProperty + type ItemProperty struct + Calculated bool + DataType ItemDataType + Deleted bool + Description string + DisplayOrder int + ExternalOptions bool + FieldType ItemFieldType + FormField bool + GroupName string + Hidden bool + Label string + MutableDefinitionNotDeletable bool + Name string + Options []ItemPropertyOption + ReadOnlyDefinition bool + ReadOnlyValue bool + SearchableInGlobalSearch bool + type ItemPropertyGroup struct + DisplayName string + DisplayOrder int + HubspotDefined bool + Name string + type ItemPropertyGroups []ItemPropertyGroup + type ItemPropertyOption struct + Description string + DisplayOrder int + Hidden bool + Label string + Value interface{} + type ListMembershipFilterItem struct + ListID int + Operator ListMembershipOperator + type ListMembershipOperator FilterOperator + type Metadata struct + Error string + LastProcessingStateChangeAt UnixTime + LastSizeChangeAt UnixTime + Processing ProcessingType + Size int + type OAuth2 struct + func NewOAuth2(token string) OAuth2 + func (auth OAuth2) Authenticate(request *http.Request) error + type Page struct + HasMore bool + Offset int + type PageViewFilterItem struct + FirstOccurenceAfter UnixTime + FirstOccurenceBefore UnixTime + LastOccurenceAfter UnixTime + LastOccurenceBefore UnixTime + MaxOccurence int + MinOccurence int + Operator PageviewsOperator + Value string + type PageviewsOperator FilterOperator + type ProcessingType string + const DONE + const INITIALIZING + const PROCESSING + const REFRESHING + type Properties struct + Properties []Property + func (p *Properties) AddProperty(prop string, value interface{}) + func (p *Properties) GetProperty(prop string) (interface{}, bool) + func (p *Properties) SetProperty(prop string, value interface{}) + type Property struct + Property string + Value interface{} + Versions Versions + type UnixTime struct + func (t *UnixTime) MarshalJSON() ([]byte, error) + func (t *UnixTime) String() string + func (t *UnixTime) ToDate() + func (t *UnixTime) UnmarshalJSON(data []byte) error + type Vid struct + IsNew bool + VID int