Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetViewActionMarkup ¶
GetViewActionMarkup returns a string that contains the required markup.
Types ¶
type ClientConfig ¶
type ClientSecrets ¶
type ClientSecrets struct {
Installed ClientConfig `json:"installed"`
}
ClientSecrets is the structure of a client_secrets.json file that contains info on an installed client.
type GMail ¶
type GMail struct {
// contains filtered or unexported fields
}
GMail is an object used for authenticating to the GMail API server.
func NewFromFiles ¶
NewFromFiles creates a new GMail object authorized from the given files.
Creates a copy of the token cache file in /tmp since mounted secrets are read-only.
func (*GMail) SendMessage ¶
SendMessage sends the given Message.
func (*GMail) SendWithMarkup ¶
func (a *GMail) SendWithMarkup(senderDisplayName string, to []string, subject string, body string, markup string) error
Send an email with gmail markup. Documentation about markups supported in gmail are here: https://developers.google.com/gmail/markup/ A go-to action example is here: https://developers.google.com/gmail/markup/reference/go-to-action
Directories ¶
Path | Synopsis |
---|---|
Runs through a three-legged OAuth 2.0 flow to create a client_token.json file which contains a refresh token.
|
Runs through a three-legged OAuth 2.0 flow to create a client_token.json file which contains a refresh token. |