Versions in this module Expand all Collapse all v0 v0.1.1 Apr 7, 2023 v0.1.0 Apr 7, 2023 Changes in this version type Client + func DefaultFromEnv() *Client + func (c *Client) CreateContact(contact *Contact) (*Contact, error) + func (c *Client) GetContact(id int) (*Contact, error) + func (c *Client) GetContactFilters() ([]ContactView, error) + func (c *Client) ListAllContacts() ([]Contact, error) type Contact + ExternalId string + FirstCampaign string + FirstMedium string + FirstSeenChat string + FirstSource string + LastCampaign string + LastMedium string + LastSeenChat string + LastSource string + LatestCampaign string + LatestMedium string + LatestSource string + Locale string + McrId int64 + OtherUnsubscriptionReason string + PhoneNumbers []string + SmsSubscriptionStatus int + SubscriptionTypes string + SystemTags []string + TotalSessions string + UnsubscriptionReason string + WhatsappSubscriptionStatus int + WorkEmail string + type ContactFilters struct + Filters []ContactView + type ContactView struct + ID int + IsDefault bool + IsPublic bool + ModelClassName string + Name string + UpdatedAt string + UserID int type ListResponse + Contacts []Contact v0.0.2 Aug 29, 2021 Changes in this version type Client + func (c *Client) GetLeadFilters() ([]LeadView, error) + func (c *Client) ListAllLeads() ([]Lead, error) + type LeadFilters struct + Filters []LeadView + type LeadView struct + ID int + IsDefault bool + IsPublic bool + ModelClassName string + Name string + UpdatedAt string + UserID int + type ListMeta struct + Total int + TotalPages int + type ListResponse struct + Leads []Lead + Meta ListMeta v0.0.1 Mar 7, 2021 Changes in this version + type APIObject struct + Contact *Contact + Lead *Lead + Note *Note + type BaseNoteDescription struct + Client ClientInfo + Event string + type Client struct + func New(host, token string) *Client + func (c *Client) AddNote(id int64, et EntityType, desc string) (*Note, error) + func (c *Client) CreateLead(lead *Lead) (*Lead, error) + func (c *Client) GetLead(id int) (*Lead, error) + func (c *Client) LookupByEmail(email string, et EntityType, more ...EntityType) (*LookupResult, error) + func (c *Client) Search(str string, et EntityType, more ...EntityType) ([]Entity, error) + func (c *Client) UpdateContact(contact *Contact) (*Contact, error) + func (c *Client) UpdateLead(lead *Lead) (*Lead, error) + type ClientInfo struct + Device string + Location GeoLocation + OS string + type Company struct + Address string + AnnualRevenue int + BusinessType CompanyType + BusinessTypeID int64 + City string + Country string + ID int64 + IndustryType CompanyType + IndustryTypeID int64 + Name string + NumberOfEmployees int + Phone string + State string + Website string + Zipcode string + type CompanyType struct + ID int64 + Name string + Partial bool + Position int + type Contact struct + ActiveSalesSequences int + Address string + Avatar string + City string + CompletedSalesSequences int + Country string + CreatedAt string + CustomField CustomFields + CustomerFit int + Department string + DisplayName string + DoNotDisturb bool + Email string + EmailStatus string + Emails []EmailInfo + Facebook string + FirstName string + HasAuthority bool + ID int64 + IsDeleted bool + JobTitle string + Keyword string + LastAssignedAt *time.Time + LastContacted *time.Time + LastContactedMode string + LastContactedSalesActivityMode string + LastContactedViaChat *time.Time + LastContactedViaSalesActivity string + LastName string + LastSeen *time.Time + LeadQuality string + LeadScore int + Linkedin string + Links Links + Medium string + MobileNumber string + OpenDealsAmount string + OpenDealsCount int + RecentNote string + State string + SubscriptionStatus int + Tags []string + TeamUserIds interface{} + TimeZone string + Twitter string + UpdatedAt string + WebFormIds string + WonDealsAmount string + WonDealsCount int + WorkNumber string + Zipcode string + type Currency struct + CurrencyCode string + CurrencyType int + ExchangeRate string + ID int64 + IsActive bool + Partial bool + ScheduleInfo interface{} + type CustomFields struct + CalendlyMeetingAgenda interface{} + Github interface{} + Interest interface{} + KubernetesSetup string + type Deal struct + Amount float64 + BaseCurrencyAmount float64 + Currency Currency + CurrencyID int64 + DealProduct interface{} + DealProductID int64 + ExpectedClose *time.Time + ID int64 + Name string + ProductID int + type EmailInfo struct + Destroy bool + ID int64 + IsPrimary bool + Label interface{} + Value string + type Entity struct + Avatar string + CompanyName string + Email string + ID string + Name string + Type string + type EntityType string + const EntityContact + const EntityDeal + const EntityLead + const EntitySalesAccount + type GeoLocation struct + City string + Coordinates string + Country string + IP string + Timezone string + type Lead struct + ActiveSalesSequences int + Address string + Avatar string + City string + Company Company + CompletedSalesSequences int + Country string + CreatedAt string + CustomField CustomFields + Deal Deal + Department string + DisplayName string + DoNotDisturb bool + Email string + EmailStatus string + Emails []EmailInfo + Facebook string + FirstName string + HasAuthority bool + ID int64 + IsDeleted bool + JobTitle string + Keyword string + LastAssignedAt *time.Time + LastContacted *time.Time + LastContactedMode string + LastContactedSalesActivityMode string + LastContactedViaChat *time.Time + LastContactedViaSalesActivity string + LastName string + LastSeen *time.Time + LeadQuality string + LeadScore int + Linkedin string + Links Links + Medium string + MobileNumber string + PhoneNumbers []interface{} + RecentNote string + StageUpdatedTime *time.Time + State string + SubscriptionStatus int + Tags []string + TeamUserIds interface{} + TimeZone string + Twitter string + UpdatedAt string + WebFormIds string + WorkNumber string + Zipcode string + type Links struct + Appointments string + Connections string + Conversations string + DocumentAssociations string + Duplicates string + Notes string + Reminders string + Tasks string + TimelineFeeds string + type LookupResult struct + Contacts struct{ ... } + Leads struct{ ... } + type Note struct + CreatedAt *time.Time + Description string + ID int64 + TargetableID int64 + TargetableType string + UpdatedAt *time.Time + type SearchResults []Entity