Documentation
¶
Index ¶
- type API
- func (api API) Request(method string, url string, params map[string]string, body []byte) (*rest.Response, error)
- func (api API) Send(message *email.Message) error
- func (api API) Subscribe(list *email.List, sub *email.Subscriber) error
- func (api API) UpdateContact(sub *email.Subscriber) (*Contact, error)
- type Contact
- type ContactResponse
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (API) Request ¶
func (api API) Request(method string, url string, params map[string]string, body []byte) (*rest.Response, error)
Make a single API call to Sendgrid
func (API) UpdateContact ¶
func (api API) UpdateContact(sub *email.Subscriber) (*Contact, error)
Update or create contact if it doesn't exist
type ContactResponse ¶
Click to show internal directories.
Click to hide internal directories.