Documentation ¶
Index ¶
- func AddToAudience(audience Audience, list_id string, hash string, token string)
- func GetMD5Hash(text string) string
- func SendCampaign(campaignId *CampaignId, token string)
- func UpdateToAudience(audience Audience, list_id string, hash string, token string)
- type Audience
- type Campaign
- type CampaignContent
- type CampaignId
- type Merge
- type Recipients
- type Sections
- type Settings
- type Template
- type TemplateContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToAudience ¶
func GetMD5Hash ¶
func SendCampaign ¶
func SendCampaign(campaignId *CampaignId, token string)
Types ¶
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 Recipients ¶
type Recipients struct {
ListId string `json:"list_id"`
}
type Template ¶
type Template struct {
TemplateField TemplateContent `json:"template"`
}
type TemplateContent ¶
Click to show internal directories.
Click to hide internal directories.