Versions in this module Expand all Collapse all v0 v0.2.0 Oct 21, 2021 v0.1.0 Oct 21, 2021 Changes in this version + const Checkboxes + const Dropdown + const ENDPOINT + const Hidden + const Radio + const Subscribed + const SubscriptionCleaned + const SubscriptionPending + const Unsubscribed + func EmailToHash(email string) string + type Category struct + DisplayOrder uint + Id string + ListId string + Title string + Type CategoryType + type CategoryType string + type Client struct + func NewClient(key string) *Client + func (c *Client) AddInterest(listId, categoryId, interest *Interest) (*Interest, error) + func (c *Client) AddMember(listId string, member *Member) (*Member, error) + func (c *Client) Call(method string, endpoint string, data interface{}, results interface{}) error + func (c *Client) CreateInterestCategory(listId string, category *Category) (*Category, error) + func (c *Client) CreateList(list *List) (List, error) + func (c *Client) DeleteInterest(listId, categoryId, id string) error + func (c *Client) DeleteInterestCategory(listId, categoryId string) error + func (c *Client) DeleteList(listId string) error + func (c *Client) DeleteMember(listId, emailHash string) error + func (c *Client) Details() (Detail, error) + func (c *Client) Interest(listId, categoryId, id string) (Interest, error) + func (c *Client) InterestCategories(listId string) ([]Category, error) + func (c *Client) InterestCategory(listId, categoryId string) (Category, error) + func (c *Client) Interests(listId, categoryId string) ([]Interest, error) + func (c *Client) List(listId string) (List, error) + func (c *Client) Lists() ([]List, error) + func (c *Client) Member(listId, emailHash string) (*Member, error) + func (c *Client) Members(listId string) ([]*Member, error) + func (c *Client) UpdateInterest(listId, categoryId, interest *Interest) (*Interest, error) + func (c *Client) UpdateInterestCategory(listId, categoryId string, category *Category) (*Category, error) + func (c *Client) UpdateList(list *List) (List, error) + func (c *Client) UpdateMember(listId string, member *Member) (*Member, error) + func (c *Client) UpsertMember(listId string, member *Member) (*Member, error) + type Contact struct + Address1 string + Address2 string + City string + Company string + Country string + Phone string + State string + Zip string + type Detail struct + AccountId string + AccountName string + Contact Contact + LastLogin string + TotalSubscribers int64 + type EmailType string + const HtmlEmail + const TextEmail + type Interest struct + CategoryId string + DisplayOrder uint + Id string + ListId string + Name string + type List struct + BeamerAddress string + CampaignDefaults struct{ ... } + Contact Contact + DateCreated string + EmailTypeOption bool + Id string + ListRating uint + Modules []string + Name string + NotifyOnSubscribe string + NotifyOnUnsubscribe string + PermissionReminder string + Stats struct{ ... } + SubscribeUrlLong string + SubscribeUrlShort string + UseArchiveBar bool + Visibility VisibilityStatus + type Member struct + EmailAddress string + EmailClient string + EmailType EmailType + Id string + Interests map[string]bool + IpOpt string + IpSignup string + Language string + LastChanged string + LastNote struct{ ... } + ListId string + Location struct{ ... } + MemberRating uint + MergeFields map[string]interface{} + Stats struct{ ... } + Status SubscriptionStatus + StatusIfNew SubscriptionStatus + TimestampOpt string + TimestampSignup string + UniqueEmailId string + Vip bool + func NewMember(email string) *Member + func (m *Member) SetInterest(key string, val bool) *Member + func (m *Member) SetMergeField(key string, val interface{}) *Member + type Message struct + FromEmail string + FromName string + Language string + Subject string + type SubscriptionStatus string + type VisibilityStatus string + const PrivateVisibility + const PublicVisibility