Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 512 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 512 Bytes

sendgrid-contacts-go

Golang bindings for SendGrid's Contacts Marketing API

Example

import "github.com/justapenguin/sendgrid-contacts-go"

// ...

client := contacts.New("SENDGRID_APIKEY")

resp, err := client.Recipients().Add(
    &Recipient{
      FirstName: "John", 
      LastName:  "Doe", 
      Email:     "john.doe@example.com",
    },
)

if err != nil {
    // ...
}

// do something with resp...