From b2e8b7fc611ed5775623d6b00cf34ade10b116f5 Mon Sep 17 00:00:00 2001 From: Gaurav Vohra Date: Mon, 24 Jul 2017 14:35:48 -0700 Subject: [PATCH 1/2] add headers to drip campaign struct. this was confirmed to be part of the API by SWU support over email --- swu.go | 1 + 1 file changed, 1 insertion(+) diff --git a/swu.go b/swu.go index 9be5bd2..1f1df21 100644 --- a/swu.go +++ b/swu.go @@ -60,6 +60,7 @@ type SWUDripCampaign struct { BCC []*SWURecipient `json:"bcc,omitempty"` Sender *SWUSender `json:"sender,omitempty"` EmailData map[string]string `json:"email_data,omitempty"` + Headers map[string]string `json:"headers,omitempty"` Tags []string `json:"tags,omitempty"` ESPAccount string `json:"esp_account,omitempty"` Locale string `json:"locale,omitempty"` From cc215ba8594093a1b9e9de919224ae68d3459343 Mon Sep 17 00:00:00 2001 From: Islam Sharabash Date: Tue, 15 Aug 2017 19:19:37 -0700 Subject: [PATCH 2/2] Add headers to SWUEmail --- swu.go | 1 + 1 file changed, 1 insertion(+) diff --git a/swu.go b/swu.go index 1f1df21..2166403 100644 --- a/swu.go +++ b/swu.go @@ -47,6 +47,7 @@ type SWUEmail struct { BCC []*SWURecipient `json:"bcc,omitempty"` Sender *SWUSender `json:"sender,omitempty"` EmailData map[string]string `json:"email_data,omitempty"` + Headers map[string]string `json:"headers,omitempty"` Tags []string `json:"tags,omitempty"` Inline *SWUAttachment `json:"inline,omitempty"` Files []*SWUAttachment `json:"files,omitempty"`