Documentation ¶
Index ¶
Constants ¶
View Source
const (
// APIURI is the host for Mailchimp API requests.
APIURI = "https://us7.api.mailchimp.com"
)
Variables ¶
View Source
var ( // SubscribeURL is the url to send subscription requests to. SubscribeURL = APIURI + "/2.0/lists/subscribe" )
Functions ¶
Types ¶
type SubscribeRequest ¶
type SubscribeRequest struct { APIKey string `json:"apikey"` ID string `json:"id"` Email Email `json:"email"` DoubleOptin bool `json:"double_optin"` SendWelcome bool `json:"send_welcome"` }
SubscribeRequest defines the parameters sent to the mailchimp API to subscribe someone to a newsletter.
Click to show internal directories.
Click to hide internal directories.