Documentation ¶
Index ¶
- func GetClient(ctx context.Context, config *oauth2.Config) *http.Client
- func GetSheetsService() *sheets.Service
- func GetTokenFromWeb(config *oauth2.Config) *oauth2.Token
- func SaveToken(file string, token *oauth2.Token)
- func TokenCacheFile() (string, error)
- func TokenFromFile(file string) (*oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
GetClient uses a Context and Config to retrieve a Token then generate a Client. It returns the generated Client.
func GetSheetsService ¶
func GetSheetsService() *sheets.Service
GetSheetsService reads the coaching program spreadsheet and sends Slack notifications 2 months after a meeting has been done.
func GetTokenFromWeb ¶
GetTokenFromWeb uses Config to request a Token. It returns the retrieved Token.
func TokenCacheFile ¶
TokenCacheFile generates credential file path/filename. It returns the generated credential path/filename.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.