Documentation ¶
Overview ¶
Manages authenticating to Google and providing an OAuth2 token
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageUploadRequestFromFile ¶
func NewImageUploadRequestFromFile(inputFilePath string, callback func(int64)) (*http.Request, error)
NewImageUploadRequestFromFile creates a file upload request. If callback parameter is specified, it will get called when data has been read (and thus submitted) from the reader.
func NewOAuth2Config ¶
NewOAuth2Config creates a new OAuth2 configuration with client id + secret
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator is our authenticator type. Construct using NewAuthenticator(). This class implements the Google OAuth2 authorization code flow; for more info, see: https://developers.google.com/actions/identity/oauth2-code-flow
func NewAuthenticator ¶
func NewAuthenticator(clientID, clientSecret string) *Authenticator
NewAuthenticator creates a new Authenticator object with given client id + secret.
Click to show internal directories.
Click to hide internal directories.