Versions in this module Expand all Collapse all v0 v0.1.1 Sep 17, 2026 v0.1.0 Jul 24, 2026 Changes in this version + const UserAgent + const Version + type APIError struct + Code int + CodeDescription string + Context map[string]any + HttpStatus int + Message string + MoreInfo string + Uuid string + func (e APIError) Error() string + type Account struct + AccountID string + City string + CompanyName string + CountryCode struct{ ... } + Email string + FirstName string + Href string + IndustryTag struct{ ... } + LastName string + NumberOfEmployees string + Phone string + State string + Street string + TimeFormat string + TimeZone struct{ ... } + ZipCode string + type Campaign struct + CampaignID string + Confirmation struct{ ... } + CreatedOn string + Description string + Href string + IsDefault string + LanguageCode string + Name string + OptInTypes struct{ ... } + Postal struct{ ... } + Profile struct{ ... } + SubscriptionNotifications struct{ ... } + TechName string + type ClickedCondition struct + ClickTrackId string + ConditionType string + Operator string + OperatorType string + Scope string + func (c *ClickedCondition) GetType() string + type Client struct + func New(apiKey string, env Environment, opts ...Option) (*Client, error) + func (c *Client) AllCampaigns(ctx context.Context, opts ...QueryOption) iter.Seq2[Campaign, error] + func (c *Client) AllContactsByIDSearchContacts(ctx context.Context, searchContactsID string, opts ...QueryOption) iter.Seq2[Contact, error] + func (c *Client) AllContactsFromCampaign(ctx context.Context, campaignID string, opts ...QueryOption) iter.Seq2[Contact, error] + func (c *Client) AllContactsFromSearchContactsConditions(ctx context.Context, conditions SearchContacts, opts ...QueryOption) iter.Seq2[Contact, error] + func (c *Client) AllCustomFields(ctx context.Context, opts ...QueryOption) iter.Seq2[CustomField, error] + func (c *Client) AllSearchContacts(ctx context.Context, opts ...QueryOption) iter.Seq2[SearchContacts, error] + func (c *Client) AllTags(ctx context.Context, opts ...QueryOption) iter.Seq2[Tag, error] + func (c *Client) CreateCustomField(ctx context.Context, cf CustomField) (CustomField, error) + func (c *Client) CreateTag(ctx context.Context, t Tag) (Tag, error) + func (c *Client) GetAccount(ctx context.Context) (Account, error) + func (c *Client) GetCampaigns(ctx context.Context, opts ...QueryOption) ([]Campaign, ResponseHeader, error) + func (c *Client) GetContactsByIDSearchContacts(ctx context.Context, searchContactsID string, opts ...QueryOption) ([]Contact, ResponseHeader, error) + func (c *Client) GetContactsFromCampaign(ctx context.Context, campaignID string, opts ...QueryOption) ([]Contact, ResponseHeader, error) + func (c *Client) GetContactsFromSearchContactsConditions(ctx context.Context, conditions SearchContacts, opts ...QueryOption) ([]Contact, ResponseHeader, error) + func (c *Client) GetCustomFieldsList(ctx context.Context, opts ...QueryOption) ([]CustomField, ResponseHeader, error) + func (c *Client) GetImport(ctx context.Context, importID string) (Import, error) + func (c *Client) GetSearchContactsByID(ctx context.Context, searchContactsID string, opts ...QueryOption) (SearchContacts, ResponseHeader, error) + func (c *Client) GetSearchContactsList(ctx context.Context, opts ...QueryOption) ([]SearchContacts, ResponseHeader, error) + func (c *Client) GetTagsList(ctx context.Context, opts ...QueryOption) ([]Tag, ResponseHeader, error) + func (c *Client) NewSearchContacts(ctx context.Context, conditions SearchContacts) (SearchContacts, error) + func (c *Client) ScheduleNewContactImport(ctx context.Context, imp ScheduleImport) (Import, error) + type Contact struct + Activities string + Campaign Campaign + ChangedOn string + ContactID string + CreatedOn string + CustomFieldValues []CustomFieldValue + DayOfCycle string + Email string + EngagementScore int + Geolocation struct{ ... } + Href string + IpAddress string + Name string + Origin string + Scoring int + Tags []Tag + TimeZone string + type CrmCondition struct + ConditionType string + PipelineScope string + StageScope string + func (c *CrmCondition) GetType() string + type CustomCondition struct + ConditionType string + IncludeCurrentPeriod bool + NumberOfDays int + Operator string + OperatorType string + Scope string + Value string + func (c *CustomCondition) GetType() string + type CustomEventCondition struct + ConditionType string + CustomEventId string + Date string + DateOperator string + Occurrence string + func (c *CustomEventCondition) GetType() string + type CustomField struct + CustomFieldID string + FieldType string + Format string + Hidden string + Href string + Name string + Type string + ValueType string + Values []string + type CustomFieldValue struct + CustomFieldID string + FieldType string + Name string + Type string + Value []string + ValueType string + Values []string + type EcommerceAbandonedCartCondition struct + CartValue struct{ ... } + ConditionType string + DateOperator string + IncludeCurrentPeriod bool + Range string + ShopScope string + Value string + func (e *EcommerceAbandonedCartCondition) GetType() string + type EcommerceBrandPurchasedCondition struct + ConditionType string + Operator string + OperatorType string + Scope string + Value string + func (e *EcommerceBrandPurchasedCondition) GetType() string + type EcommerceNumberOfPurchasesCondition struct + ConditionType string + Date struct{ ... } + Operator string + OperatorType string + Scope string + Value int + func (e *EcommerceNumberOfPurchasesCondition) GetType() string + type EcommerceProductPurchasedCondition struct + CategoryScope string + ConditionType string + DateOperator string + IncludeCurrentPeriod bool + NumberOfDays int + Operator string + OperatorType string + ProductScope string + ShopScope string + Value string + func (e *EcommerceProductPurchasedCondition) GetType() string + type EcommerceTotalSpentCondition struct + ConditionType string + Currency string + Date struct{ ... } + Operator string + OperatorType string + Scope string + Value float64 + func (e *EcommerceTotalSpentCondition) GetType() string + type EmailCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (e *EmailCondition) GetType() string + type EngagementScoreCondition struct + ConditionType string + Operator string + Value int + func (e *EngagementScoreCondition) GetType() string + type Environment string + const EnvMaxEU + const EnvMaxUS + const EnvSMB + func ParseEnvironment(s string) (Environment, error) + type FromField struct + CreatedOn string + Domain struct{ ... } + Email string + FromFieldID string + Href string + IsActive string + IsDefault string + Name string + RewrittenEmail string + type GDPRCondition struct + ConditionType string + ConsentDate struct{ ... } + ConsentStatus string + func (g *GDPRCondition) GetType() string + type GenericCondition map[string]any + func (g *GenericCondition) GetType() string + type GeoCondition struct + ConditionType string + Operator string + OperatorType string + Scope string + Value string + func (g *GeoCondition) GetType() string + type GoalCondition struct + ConditionType string + Operator string + OperatorType string + Scope string + Value int + func (g *GoalCondition) GetType() string + type Import struct + Campaign Campaign + CreatedOn string + ErrorStatistics struct{ ... } + FinishedOn string + Href string + ImportID string + Statistics struct{ ... } + Status string + type LastClickDateCondition struct + ConditionType string + Operator string + OperatorType string + Value int + func (l *LastClickDateCondition) GetType() string + type LastOpenDateCondition struct + ConditionType string + Operator string + OperatorType string + Value int + func (l *LastOpenDateCondition) GetType() string + type LastSendDateCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (l *LastSendDateCondition) GetType() string + type NameCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (n *NameCondition) GetType() string + type NotClickedCondition struct + ClickTrackId string + ConditionType string + DateOperator string + IncludeCurrentPeriod bool + Operator string + OperatorType string + Scope string + Value string + func (n *NotClickedCondition) GetType() string + type NotOpenedCondition struct + ConditionType string + DateOperator string + IncludeCurrentPeriod bool + Operator string + Scope string + Value string + func (n *NotOpenedCondition) GetType() string + type NotSentCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (n *NotSentCondition) GetType() string + type OpenedCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (o *OpenedCondition) GetType() string + type Option func(*Client) + func WithEndpoint(raw string) Option + func WithHTTPClient(hc *http.Client) Option + func WithMailingDomain(domain string) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type PhaseCondition struct + ConditionType string + Operator string + OperatorType string + Value int + func (p *PhaseCondition) GetType() string + type QueryOption func(url.Values) + func WithFields(fields string) QueryOption + func WithName(name string) QueryOption + func WithPage(page int) QueryOption + func WithPerPage(perPage int) QueryOption + type ResponseHeader struct + ContentEncoding string + ContentSecurityPolicy string + ContentType string + CurrentPage int + Date string + RateLimit int + RateLimitRemaining int + TotalCount int + TotalPages int + UniqueID string + type ScheduleImport struct + CampaignID string + Contacts [][]string + FieldMapping []string + type ScoreCondition struct + ConditionType string + Operator string + OperatorType string + Value int + func (s *ScoreCondition) GetType() string + type SearchContacts struct + CreatedOn string + Href string + Name string + SearchContactId string + Section []SearchContactsSection + SectionLogicOperator string + SubscribersType []string + type SearchContactsCondition interface + GetType func() string + type SearchContactsSection struct + CampaignIdsList []string + Conditions []any + LogicOperator string + SubscriberCycle []string + SubscriptionDate string + type SentCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (s *SentCondition) GetType() string + type SmsLinkClickedCondition struct + ClickTrackID string + ConditionType string + SMSID string + func (s *SmsLinkClickedCondition) GetType() string + type SmsLinkNotClickedCondition struct + ClickTrackID string + ConditionType string + SMSID string + type SmsSentCondition struct + ConditionType string + DeliveryStatus string + SMSID string + func (s *SmsSentCondition) GetType() string + type SubscriptionDateCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (s *SubscriptionDateCondition) GetType() string + type SubscriptionMethodCondition struct + ConditionType string + Method string + Value string + WebformType string + func (s *SubscriptionMethodCondition) GetType() string + type Tag struct + Color string + CreatedAt string + Name string + TagID string + type TagCondition struct + ConditionType string + Operator string + OperatorType string + Value string + func (t *TagCondition) GetType() string + type WebinarCondition struct + ConditionType string + ContactType string + Scope string + WebinarCondition string + func (w *WebinarCondition) GetType() string