Documentation
¶
Index ¶
- Constants
- func XOAuth2Auth(user, accessToken string) smtp.Auth
- type Gmail
- func (g *Gmail) EmailAddress(accessToken string) (string, error)
- func (g *Gmail) FetchAccessToken(clientID, clientSecret, refreshToken string) (string, error)
- func (g *Gmail) FetchRefreshToken(clientID, clientSecret, authCode, redirectURI string) (string, error)
- func (g *Gmail) GetAuthURI(clientID, scope, redirectURI string) string
- type OAuth2AuthedTokens
- type OAuth2Email
Constants ¶
View Source
const ( OAUTH2_SCOPE = "https://mail.google.com/ email" OAUTH2_REDIRECT_URI_CLI = "urn:ietf:wg:oauth:2.0:oob" OAUTH2_AUTH_BASE_URL = "https://accounts.google.com/o/oauth2/auth" OAUTH2_TOKEN_BASE_URL = "https://accounts.google.com/o/oauth2/token" GMAIL_INFO_URL = "https://www.googleapis.com/userinfo/email" )
Variables ¶
This section is empty.
Functions ¶
func XOAuth2Auth ¶
Types ¶
type Gmail ¶
type Gmail struct { }
func (*Gmail) FetchAccessToken ¶
func (*Gmail) FetchRefreshToken ¶
func (*Gmail) GetAuthURI ¶
type OAuth2AuthedTokens ¶
type OAuth2Email ¶
Click to show internal directories.
Click to hide internal directories.