Documentation ¶
Index ¶
- Variables
- func MergeCompanies(ctx context.Context, keep, merge *DoppelgangersObject)
- func MergeContacts(ctx context.Context, keep, merge *DoppelgangersObject)
- func MergeSimilarCompanies(ctx context.Context) error
- type DoppelgangersObject
- type DoppelgangersProperty
- type DoppelgangersPropertyVersion
- type DoppelgangersResponse
- type DoppelgangersResult
- type DoppelgangersUserSavedProperty
- type DoppelgangersUserSavedPropertyOption
- type QSParam
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OAuthToken = env.Config.HubspotOAuthToken APIKey = env.Config.HubspotApiKey // CookieString and CSRFToken are reverse engineered from the frontend request flow. // they only need to be set for the doppelgänger functionality. CookieString = env.Config.HubspotCookieString CSRFToken = env.Config.HubspotCsrfToken )
Functions ¶
func MergeCompanies ¶
func MergeCompanies(ctx context.Context, keep, merge *DoppelgangersObject)
func MergeContacts ¶
func MergeContacts(ctx context.Context, keep, merge *DoppelgangersObject)
func MergeSimilarCompanies ¶
Types ¶
type DoppelgangersObject ¶
type DoppelgangersObject struct { ObjectType string `json:"objectType"` ObjectID int `json:"objectId"` PortalID int `json:"portalId"` Properties map[string]*DoppelgangersProperty `json:"properties"` }
type DoppelgangersProperty ¶
type DoppelgangersProperty struct { PersistenceTimestamp *int `json:"persistenceTimestamp"` Source string `json:"source"` SourceID string `json:"sourceId"` Timestamp *int `json:"timestamp"` UpdatedByUserID *int `json:"updatedByUserId"` Value *string `json:"value"` Versions []*DoppelgangersPropertyVersion `json:"versions"` }
type DoppelgangersResponse ¶
type DoppelgangersResponse struct { Results []*DoppelgangersResult `json:"results"` Objects map[int]*DoppelgangersObject `json:"objects"` UserSavedProperties []*DoppelgangersUserSavedProperty `json:"userSavedProperties"` HasMore bool `json:"hasMore"` Offset int `json:"offset"` Total int `json:"total"` LastScoredTimestamp int64 `json:"lastScoredTimestamp"` }
type DoppelgangersResult ¶
type DoppelgangersUserSavedProperty ¶
type DoppelgangersUserSavedProperty struct { ExternalOptionsReferenceType *string `json:"externalOptionsReferenceType"` FieldType string `json:"fieldType"` Hidden bool `json:"hidden"` HubspotDefined bool `json:"hubspotDefined"` Label string `json:"label"` Name string `json:"name"` Type string `json:"type"` Options []*DoppelgangersUserSavedPropertyOption `json:"options"` }
Click to show internal directories.
Click to hide internal directories.