Documentation ¶
Index ¶
- Constants
- Variables
- type Account
- type AccountVitals
- type Campaign
- type CampaignSchedule
- type Client
- func (c *Client) AddEntriesToBlocklist(entries []string) (entriesAdded int, err error)
- func (c *Client) AddLeadsToCampaign(campaignId string, leads []Lead) (response *addLeadsToCampaignResponse, err error)
- func (c *Client) AddSendingAccount(campaignId, email string) error
- func (c *Client) Authenticate() (workspaceName string, err error)
- func (c *Client) CheckAccountVitals(accounts []string) (successList, failureList []AccountVitals, err error)
- func (c *Client) DeleteAccount(email string) error
- func (c *Client) DeleteLeadVariables(campaignId, email string, variables []string) error
- func (c *Client) DeleteLeadsFromCampaign(campaignId string, deleteAllFromCompany bool, deleteList []string) error
- func (c *Client) EnableWarmup(email string) error
- func (c *Client) GetCampaignAccounts(campaignId string) (accountEmails []string, err error)
- func (c *Client) GetCampaignCount(campaignId string, startDate time.Time, endDate *time.Time) (count *getCampaignCountResponse, err error)
- func (c *Client) GetCampaignName(campaignId string) (campaignName string, err error)
- func (c *Client) GetCampaignSummary(campaignId string) (summary *getCampaignSummaryResponse, err error)
- func (c *Client) GetLeadFromCampaign(campaignId, email string) (lead internalLead, err error)
- func (c *Client) LaunchCampaign(campaignId string) error
- func (c *Client) ListAccounts(limit, skip int) ([]Account, error)
- func (c *Client) ListCampaigns() ([]Campaign, error)
- func (c *Client) MarkAccountAsFixed(email string) error
- func (c *Client) MarkAllAccountsAsFixed() error
- func (c *Client) PauseCampaign(campaignId string) error
- func (c *Client) PauseWarmup(email string) error
- func (c *Client) RemoveSendingAccount(campaignId, email string) error
- func (c *Client) SetCampaignAccounts(campaignId string, accountEmails []string) error
- func (c *Client) SetCampaignName(campaignId, campaignName string) error
- func (c *Client) SetCampaignSchedule(campaignId string, startDate time.Time, endDate *time.Time, ...) error
- func (c *Client) SetLeadVariable(campaignId, email string, variables map[string]interface{}) error
- func (c *Client) UpdateLeadStatus(campaignId, email, status string) error
- func (c *Client) UpdateLeadVariable(campaignId, email string, variables map[string]interface{}) error
- type Lead
- type Option
- type Payload
- type Timing
Constants ¶
View Source
const ( LeadStatusActive = "Active" LeadStatusCompleted = "Completed" LeadStatusUnsubscribed = "Unsubscribed" LeadStatusInterested = "Interested" LeadStatusMeetingBooked = "Meeting Booked" LeadStatusMeetingComplete = "Meeting Completed" LeadStatusClosed = "Closed" LeadStatusOutOfOffice = "Out of Office" LeadStatusNotInterested = "Not Interested" LeadStatusWrongPerson = "Wrong Person" )
Variables ¶
View Source
var ( ErrMarshalFailed = errors.New("failed to unmarshal object") ErrUnmarshalFailed = errors.New("failed to unmarshal object") ErrRequestCreationFailed = errors.New("failed to create request") ErrRequestExecutionFailed = errors.New("failed to execute request") ErrRequestBodyReadFailed = errors.New("failed to to read request body") )
Functions ¶
This section is empty.
Types ¶
type AccountVitals ¶
type CampaignSchedule ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddEntriesToBlocklist ¶
func (*Client) AddLeadsToCampaign ¶
func (*Client) AddSendingAccount ¶
func (*Client) Authenticate ¶
func (*Client) CheckAccountVitals ¶
func (c *Client) CheckAccountVitals(accounts []string) (successList, failureList []AccountVitals, err error)
func (*Client) DeleteAccount ¶
func (*Client) DeleteLeadVariables ¶
func (*Client) DeleteLeadsFromCampaign ¶
func (*Client) EnableWarmup ¶
func (*Client) GetCampaignAccounts ¶
func (*Client) GetCampaignCount ¶
func (*Client) GetCampaignName ¶
func (*Client) GetCampaignSummary ¶
func (*Client) GetLeadFromCampaign ¶
func (*Client) LaunchCampaign ¶
func (*Client) ListCampaigns ¶
func (*Client) MarkAccountAsFixed ¶
func (*Client) MarkAllAccountsAsFixed ¶
func (*Client) PauseCampaign ¶
func (*Client) PauseWarmup ¶
func (*Client) RemoveSendingAccount ¶
func (*Client) SetCampaignAccounts ¶
func (*Client) SetCampaignName ¶
func (*Client) SetCampaignSchedule ¶
func (*Client) SetLeadVariable ¶
func (*Client) UpdateLeadStatus ¶
type Lead ¶
type Lead struct { Email string `json:"email"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` CompanyName string `json:"company_name,omitempty"` Personalization string `json:"personalization,omitempty"` Phone string `json:"phone,omitempty"` Website string `json:"website,omitempty"` CustomVariables map[string]string `json:"custom_variables,omitempty"` }
type Option ¶
type Option func(option *options) error
func WithApiVersion ¶
func WithHttpClient ¶
func WithRateLimit ¶
type Payload ¶
type Payload struct { Name struct { Last string `json:"last"` First string `json:"first"` } `json:"name"` Warmup struct { Limit int `json:"limit"` Advanced struct { WarmCtd bool `json:"warm_ctd"` OpenRate int `json:"open_rate"` WeekdayOnly bool `json:"weekday_only"` ImportantRate int `json:"important_rate"` ReadEmulation bool `json:"read_emulation"` SpamSaveRate int `json:"spam_save_rate"` RandomRangeMin int `json:"random_range_min"` RandomRangeMax int `json:"random_range_max"` } `json:"advanced"` Increment int `json:"increment"` ReplyRate int `json:"reply_rate"` } `json:"warmup"` ImapHost string `json:"imap_host"` ImapPort int `json:"imap_port"` SmtpHost string `json:"smtp_host"` SmtpPort string `json:"smtp_port"` DailyLimit int `json:"daily_limit"` SendingGap string `json:"sending_gap"` }
Click to show internal directories.
Click to hide internal directories.