mailchimp

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddMemberToListOperation

func NewAddMemberToListOperation() sdk.IOperation

func NewAddNoteToSubscriberOperation

func NewAddNoteToSubscriberOperation() sdk.IOperation

func NewAddSubscriberToTagOperation

func NewAddSubscriberToTagOperation() sdk.IOperation

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

func NewGetAllListOperation

func NewGetAllListOperation() sdk.IOperation

func NewRemoveSubscriberToTagOperation

func NewRemoveSubscriberToTagOperation() sdk.IOperation

func NewUpdateSubscriberStatusOperation

func NewUpdateSubscriberStatusOperation() sdk.IOperation

Types

type AddMemberToListOperation

type AddMemberToListOperation struct {
	// contains filtered or unexported fields
}

func (*AddMemberToListOperation) GetInfo

func (*AddMemberToListOperation) Run

func (*AddMemberToListOperation) Test

type AddNoteToSubscriberOperation

type AddNoteToSubscriberOperation struct {
	// contains filtered or unexported fields
}

func (*AddNoteToSubscriberOperation) GetInfo

func (*AddNoteToSubscriberOperation) Run

func (*AddNoteToSubscriberOperation) Test

type AddSubscriberToTagOperation

type AddSubscriberToTagOperation struct {
	// contains filtered or unexported fields
}

func (*AddSubscriberToTagOperation) GetInfo

func (*AddSubscriberToTagOperation) Run

func (*AddSubscriberToTagOperation) Test

type CampaignDefaults added in v0.5.2

type CampaignDefaults struct {
	FromName  string `json:"from_name"`
	FromEmail string `json:"from_email"`
	Subject   string `json:"subject"`
	Language  string `json:"language"`
}

type Constraints added in v0.5.2

type Constraints struct {
	MayCreate             bool `json:"may_create"`
	MaxInstances          int  `json:"max_instances"`
	CurrentTotalInstances int  `json:"current_total_instances"`
}

type Contact added in v0.5.2

type Contact struct {
	Company  string `json:"company"`
	Address1 string `json:"address1"`
	Address2 string `json:"address2"`
	City     string `json:"city"`
	State    string `json:"state"`
	Zip      string `json:"zip"`
	Country  string `json:"country"`
	Phone    string `json:"phone"`
}

type GetAllListOperation

type GetAllListOperation struct {
	// contains filtered or unexported fields
}

func (*GetAllListOperation) GetInfo

func (c *GetAllListOperation) GetInfo() *sdk.OperationInfo

func (*GetAllListOperation) Run

func (c *GetAllListOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*GetAllListOperation) Test

func (c *GetAllListOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)
type Link struct {
	Rel          string `json:"rel"`
	Href         string `json:"href"`
	Method       string `json:"method"`
	TargetSchema string `json:"targetSchema"`
	Schema       string `json:"schema"`
}

type List added in v0.5.2

type List struct {
	ID                   string           `json:"id"`
	WebID                int              `json:"web_id"`
	Name                 string           `json:"name"`
	Contact              Contact          `json:"contact"`
	PermissionReminder   string           `json:"permission_reminder"`
	UseArchiveBar        bool             `json:"use_archive_bar"`
	CampaignDefaults     CampaignDefaults `json:"campaign_defaults"`
	NotifyOnSubscribe    bool             `json:"notify_on_subscribe"`
	NotifyOnUnsubscribe  bool             `json:"notify_on_unsubscribe"`
	DateCreated          time.Time        `json:"date_created"`
	ListRating           int              `json:"list_rating"`
	EmailTypeOption      bool             `json:"email_type_option"`
	SubscribeURLShort    string           `json:"subscribe_url_short"`
	SubscribeURLLong     string           `json:"subscribe_url_long"`
	BeamerAddress        string           `json:"beamer_address"`
	Visibility           string           `json:"visibility"`
	DoubleOptin          bool             `json:"double_optin"`
	HasWelcome           bool             `json:"has_welcome"`
	MarketingPermissions bool             `json:"marketing_permissions"`
	Modules              []string         `json:"modules"`
	Stats                Stats            `json:"stats"`
	Links                []Link           `json:"_links"`
}

type ListResponse added in v0.5.2

type ListResponse struct {
	Lists []List `json:"lists"`
}

type RemoveSubscriberToTagOperation

type RemoveSubscriberToTagOperation struct {
	// contains filtered or unexported fields
}

func (*RemoveSubscriberToTagOperation) GetInfo

func (*RemoveSubscriberToTagOperation) Run

func (*RemoveSubscriberToTagOperation) Test

type Stats added in v0.5.2

type Stats struct {
	MemberCount               int       `json:"member_count"`
	TotalContacts             int       `json:"total_contacts"`
	UnsubscribeCount          int       `json:"unsubscribe_count"`
	CleanedCount              int       `json:"cleaned_count"`
	MemberCountSinceSend      int       `json:"member_count_since_send"`
	UnsubscribeCountSinceSend int       `json:"unsubscribe_count_since_send"`
	CleanedCountSinceSend     int       `json:"cleaned_count_since_send"`
	CampaignCount             int       `json:"campaign_count"`
	CampaignLastSent          time.Time `json:"campaign_last_sent"`
	MergeFieldCount           int       `json:"merge_field_count"`
	AvgSubRate                float64   `json:"avg_sub_rate"`
	AvgUnsubRate              float64   `json:"avg_unsub_rate"`
	TargetSubRate             float64   `json:"target_sub_rate"`
	OpenRate                  float64   `json:"open_rate"`
	ClickRate                 float64   `json:"click_rate"`
	LastSubDate               time.Time `json:"last_sub_date"`
	LastUnsubDate             time.Time `json:"last_unsub_date"`
}

type TriggerNewSubscriber

type TriggerNewSubscriber struct {
	// contains filtered or unexported fields
}

func NewTriggerNewSubscriber

func NewTriggerNewSubscriber() *TriggerNewSubscriber

func (*TriggerNewSubscriber) GetInfo

func (t *TriggerNewSubscriber) GetInfo() *sdk.TriggerInfo

func (*TriggerNewSubscriber) OnDisabled

func (t *TriggerNewSubscriber) OnDisabled(ctx *sdk.RunContext) error

func (*TriggerNewSubscriber) OnEnabled

func (t *TriggerNewSubscriber) OnEnabled(ctx *sdk.RunContext) error

func (*TriggerNewSubscriber) Run

func (t *TriggerNewSubscriber) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*TriggerNewSubscriber) Test

func (t *TriggerNewSubscriber) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type TriggerUnSubscriber

type TriggerUnSubscriber struct {
	// contains filtered or unexported fields
}

func NewTriggerUnSubscriber

func NewTriggerUnSubscriber() *TriggerUnSubscriber

func (*TriggerUnSubscriber) GetInfo

func (t *TriggerUnSubscriber) GetInfo() *sdk.TriggerInfo

func (*TriggerUnSubscriber) OnDisabled

func (t *TriggerUnSubscriber) OnDisabled(ctx *sdk.RunContext) error

func (*TriggerUnSubscriber) OnEnabled

func (t *TriggerUnSubscriber) OnEnabled(ctx *sdk.RunContext) error

func (*TriggerUnSubscriber) Run

func (t *TriggerUnSubscriber) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*TriggerUnSubscriber) Test

func (t *TriggerUnSubscriber) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type UpdateSubscriberStatusOperation

type UpdateSubscriberStatusOperation struct {
	// contains filtered or unexported fields
}

func (*UpdateSubscriberStatusOperation) GetInfo

func (*UpdateSubscriberStatusOperation) Run

func (*UpdateSubscriberStatusOperation) Test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL