Documentation
¶
Index ¶
Constants ¶
View Source
const ( Host = "https://api.sendgrid.com" Contacts = "/v3/marketing/contacts" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddContact ¶
type Contact ¶
type Contact struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Country string `json:"country"`
CustomFields *CustomFields `json:"custom_fields"`
}
type CustomFields ¶
type CustomFields struct {
Title string `json:"e1_T"`
Organization string `json:"e2_T"`
CloudServiceProvider string `json:"e3_T"`
}
TODO: make custom fields request to get field IDs rather than hardcoding.
Click to show internal directories.
Click to hide internal directories.