Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • 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.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"})
Expand Down Expand Up @@ -178,7 +178,7 @@ func main() {
mj := mailjet.NewMailjetClient(publicKey, secretKey)

var senders []resources.Sender
info := &MailjetRequest {
info := &Request {
Resource: "sender",
AltID: "[email protected]",
}
Expand Down Expand Up @@ -210,7 +210,7 @@ func main() {

mj := mailjet.NewMailjetClient(publicKey, secretKey)

info := &MailjetRequest{
info := &Request{
Resource: "sender",
AltID: "[email protected]",
}
Expand Down Expand Up @@ -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]",
},
},
Expand Down

0 comments on commit 21ed358

Please sign in to comment.