google

package
v0.0.0-...-9c20cf3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ctx context.Context, config *oauth2.Config) *http.Client

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

func GetTokenFromWeb(config *oauth2.Config) *oauth2.Token

GetTokenFromWeb uses Config to request a Token. It returns the retrieved Token.

func SaveToken

func SaveToken(file string, token *oauth2.Token)

SaveToken uses a file path to create a file and store the token in it.

func TokenCacheFile

func TokenCacheFile() (string, error)

TokenCacheFile generates credential file path/filename. It returns the generated credential path/filename.

func TokenFromFile

func TokenFromFile(file string) (*oauth2.Token, error)

TokenFromFile retrieves a Token from a given file path. It returns the retrieved Token and any read error encountered.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL