forked from mailjet/mailjet-apiv3-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kilian Gilonne
authored and
Kilian Gilonne
committed
Feb 2, 2016
1 parent
c101719
commit 21ed358
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,8 +114,8 @@ func main() { | |
mj := mailjet.NewMailjetClient(publicKey, secretKey) | ||
|
||
var senders []resources.Sender | ||
fmr := &FullMailjetRequest{ | ||
Info: &MailjetRequest{Resource: "sender"}, | ||
fmr := &FullRequest{ | ||
Info: &Request{Resource: "sender"}, | ||
Payload: &resources.Sender{Name: "Default", Email: "[email protected]"}, | ||
} | ||
err := mj.Post(fmr, &senders) | ||
|
@@ -146,8 +146,8 @@ func main() { | |
|
||
mj := mailjet.NewMailjetClient(publicKey, secretKey) | ||
|
||
fmr := &FullMailjetRequest{ | ||
Info: &MailjetRequest{Resource: "sender", AltID: "[email protected]"}, | ||
fmr := &FullRequest{ | ||
Info: &Request{Resource: "sender", AltID: "[email protected]"}, | ||
Payload: &resources.Sender{Name: "Bob", IsDefaultSender: true}, | ||
} | ||
err := mj.Put(fmr, []string{"Name", "IsDefaultSender"}) | ||
|
@@ -178,7 +178,7 @@ func main() { | |
mj := mailjet.NewMailjetClient(publicKey, secretKey) | ||
|
||
var senders []resources.Sender | ||
info := &MailjetRequest { | ||
info := &Request { | ||
Resource: "sender", | ||
AltID: "[email protected]", | ||
} | ||
|
@@ -210,7 +210,7 @@ func main() { | |
|
||
mj := mailjet.NewMailjetClient(publicKey, secretKey) | ||
|
||
info := &MailjetRequest{ | ||
info := &Request{ | ||
Resource: "sender", | ||
AltID: "[email protected]", | ||
} | ||
|
@@ -241,11 +241,11 @@ func main() { | |
|
||
mj := mailjet.NewMailjetClient(publicKey, secretKey) | ||
|
||
param := &mailjet.MailjetSendMail{ | ||
param := &mailjet.InfoSendMail{ | ||
FromEmail: "[email protected]", | ||
FromName: "Bob Patrick", | ||
Recipients: []mailjet.MailjetRecipient{ | ||
mailjet.MailjetRecipient{ | ||
Recipients: []mailjet.Recipient{ | ||
mailjet.Recipient{ | ||
Email: "[email protected]", | ||
}, | ||
}, | ||
|