mailchimp

package
v0.0.0-...-598a1f7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToAudience

func AddToAudience(audience Audience, list_id string, hash string, token string)

func GetMD5Hash

func GetMD5Hash(text string) string

func SendCampaign

func SendCampaign(campaignId *CampaignId, token string)

func UpdateToAudience

func UpdateToAudience(audience Audience, list_id string, hash string, token string)

Types

type Audience

type Audience struct {
	Email       string `json:"email_address"`
	MergeFields Merge  `json:"merge_fields"`
	Status      string `json:"status_if_new"`
}

type Campaign

type Campaign struct {
	RecipientsField Recipients `json:"recipients"`
	Type            string     `json:"type"`
	SettingsField   Settings   `json:"settings"`
}

type CampaignContent

type CampaignContent struct {
	Html string `json:"html"`
}

func SetCampaignContent

func SetCampaignContent(campaignId *CampaignId, template Template, token string) *CampaignContent

type CampaignId

type CampaignId struct {
	Id string `json:"id"`
}

func CreateCampaign

func CreateCampaign(campaign Campaign, token string) *CampaignId

type Merge

type Merge struct {
	FirstName string `json:"FNAME"`
}

type Recipients

type Recipients struct {
	ListId string `json:"list_id"`
}

type Sections

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

type Settings

type Settings struct {
	SubjectLine string `json:"subject_line"`
	Title       string `json:"title"`
	ToName      string `json:"to_name"`
	ReplyTo     string `json:"reply_to"`
	FromName    string `json:"from_name"`
}

type Template

type Template struct {
	TemplateField TemplateContent `json:"template"`
}

type TemplateContent

type TemplateContent struct {
	Id            int      `json:"id"`
	SectionsField Sections `json:"sections"`
}

Jump to

Keyboard shortcuts

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