sendgrid

package module
v0.0.0-...-1140c4f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Go Client for SendGrid API

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL