mailchimp

package
v0.0.0-...-56a2adc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cfgfile = `provider.conf`
)

Functions

This section is empty.

Types

type Email

type Email struct {
	PlainEmail models.Email    `json:"plain_email,omitempty"`
	GochimpM   gochimp.Message `json:"gochimp_m,omitempty"`
}

func (*Email) AddAttachment

func (m *Email) AddAttachment(a interface{}) (err error)

func (*Email) AddContent

func (m *Email) AddContent(c interface{}) (err error)

func (*Email) AddRecipients

func (m *Email) AddRecipients(r interface{}) (err error)

func (*Email) AddSender

func (m *Email) AddSender(s interface{}) (err error)

func (*Email) AddSubject

func (m *Email) AddSubject(s string) (err error)

func (*Email) AddTemplate

func (m *Email) AddTemplate(t interface{}) (err error)

func (*Email) GetInfo

func (e *Email) GetInfo() map[string]interface{}

func (*Email) GetPlainEmail

func (m *Email) GetPlainEmail() (email interface{})

type Mailchimp

type Mailchimp struct {
	ID          int64                `json:"id,omitempty"`
	Name        string               `json:"name,omitempty"`
	APIKey      string               `json:"api_key,omitempty"`
	MandrillAPI *gochimp.MandrillAPI `json:"mandril_api,omitempty"`
	CounterM    int64                `json:"counter_m,omitempty"`
}

func NewProvider

func NewProvider(cfgfile string) *Mailchimp

func (*Mailchimp) GetName

func (p *Mailchimp) GetName() (name string)

func (*Mailchimp) Init

func (p *Mailchimp) Init() (err error)

func (*Mailchimp) NewEmail

func (p *Mailchimp) NewEmail(se interface{}, s string, c interface{}) (m interface{}, err error)

func (*Mailchimp) RefactorEmail

func (p *Mailchimp) RefactorEmail(mail map[string]interface{}) (ms interface{}, err error)

func (*Mailchimp) SendEmail

func (p *Mailchimp) SendEmail(emailI interface{}) (err error)

SendEmail function with mailchimp provider

func (*Mailchimp) ToString

func (p *Mailchimp) ToString() string

Jump to

Keyboard shortcuts

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