Versions in this module Expand all Collapse all v0 v0.0.1 Aug 3, 2023 Changes in this version + func GetRefreshToken(ctx context.Context, clientID, clientSecret string, port int) (string, error) + type CompaniesResponse struct + Paging Paging + Results []Company + type Company struct + CreatedAt time.Time + ID string + Properties CompanyProperties + UpdatedAt time.Time + type CompanyProperties struct + AnnualRevenue string + City string + Domain string + Industry string + LICompanyPage string + Name string + NumberOfEmployees string + OriginalSource string + Phone string + State string + type Contact struct + CreatedAt time.Time + ID string + Properties Properties + UpdatedAt time.Time + type ContactResponse struct + Paging Paging + Results []Contact + type HubspotClient struct + func NewHubspotClient(ctx context.Context, privateAccessToken string) (*HubspotClient, error) + func NewHubspotOAuth2Client(ctx context.Context, clientID, clientSecret, refreshToken string) (*HubspotClient, error) + func (c *HubspotClient) ListCompanies() ([]Company, error) + func (c *HubspotClient) ListContacts() ([]Contact, error) + func (c *HubspotClient) ListUsers() ([]User, error) + func (c *HubspotClient) LookupCompany(name string) Company + func (c *HubspotClient) LookupUser(id string) string + type Paging struct + Next struct{ ... } + type Properties struct + Company string + CreatedAccount string + CreatedOrganization string + DeveloperSetup string + Domain string + Email string + FirstConversion string + FirstName string + InvitedToOrganization string + LastName string + OriginalSource string + OriginalSourceData2 string + Owner string + Phone string + RecentConversion string + Title string + type User struct + Email string + ID string + type UsersResponse struct + Paging Paging + Results []User