README ¶ Go Client for SendGrid API Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type APIKey type APIScope type Client func (c *Client) CreateAPIKey(apiKeyDetails APIKey) error func (c *Client) Request(endpoint string, method rest.Method, obj interface{}, result interface{}) error type MailAddress Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type APIKey ¶ type APIKey struct { Name string `json:"name"` Scopes []APIScope `json:"scopes"` } type APIScope ¶ type APIScope = string type Client ¶ type Client struct { ApiKey string } func (*Client) CreateAPIKey ¶ func (c *Client) CreateAPIKey(apiKeyDetails APIKey) error func (*Client) Request ¶ func (c *Client) Request(endpoint string, method rest.Method, obj interface{}, result interface{}) error type MailAddress ¶ type MailAddress struct { Email string `json:"email"` Name string `json:"name"` } Source Files ¶ View all Source files api.go api_apikeys.go client.go type_mail_addr.go Click to show internal directories. Click to hide internal directories.