gapi

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

gapi is a set of helpers to make work with Google API more suitable and less painful

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(config *oauth2.Config, token string) (*http.Client, error)

GetClient creates http.Client out of oauth config & token string

func GetTokenSheetsRead

func GetTokenSheetsRead(scopes []string)

GetToken runs sequence to get auth token for any app for any scope. You just need to put credentials from Cloud console to credentials.json in the launch directory.

func MakeToken

func MakeToken(token string) (*oauth2.Token, error)

MakeToken converts config string to oauth token

func ReadFromSheet

func ReadFromSheet(srv *sheets.Service, spreadsheetId string, readRange string) (*sheets.ValueRange, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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