Documentation ¶
Index ¶
- Variables
- func CreateHeaderRowInSheet(sheetsService *sheets.Service, sheetName, sheetId string) error
- func CreateNewSheet(sheetId, sheetName string, sheetsService *sheets.Service)
- func GetClient(config *oauth2.Config) *http.Client
- func GetHeaderRow() []interface{}
- func GetOauthConfig(path string) *oauth2.Config
- func GetService(credentialsJsonPath string) (*sheets.Service, error)
- func GetSheetNamesSet(srv *sheets.Service, sheetId string) map[string]bool
- func SaveToken(path string, token *oauth2.Token)
- func Serialize(buf []slack.Message) [][]interface{}
- func TokenFromFile(file string) (*oauth2.Token, error)
- func TokenFromWeb(config *oauth2.Config) *oauth2.Token
Constants ¶
This section is empty.
Variables ¶
View Source
var TargetSheetId = "1jlQE7BQUYdImdn5sB8e1fohpPtMiOWKlH2euITlvZR8"
Functions ¶
func CreateHeaderRowInSheet ¶
Create a header row in the sheet.
func CreateNewSheet ¶
func CreateNewSheet(sheetId, sheetName string, sheetsService *sheets.Service)
Create a new sheet named sheetName in the sheetId sheet.
func GetHeaderRow ¶
func GetHeaderRow() []interface{}
Create a Header Row data to be added to the sheet. Note that it should return []interface{}.
func GetOauthConfig ¶
func GetService ¶
Get Spreadsheet API Service.
func GetSheetNamesSet ¶
Get all sheet names given the sheet id.
func TokenFromFile ¶
Retrieves a token from a local file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.