google

package
v0.0.0-...-8755b95 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFiles

func AllFiles(query string, pageNum chan int) ([]*drive.File, error)

AllFiles fetches and displays all files

func AllRevisions

func AllRevisions(fileId string) ([]*drive.Revision, error)

AllRevisions fetches all revisions for a given file

func DecodeToken

func DecodeToken(src io.Reader) (*oauth2.Token, error)

func EncodeToken

func EncodeToken(tok *oauth2.Token, dst io.Writer)

func GetAuth

func GetAuth(getUrl string) (resp *http.Response, err error)

func GetClientScope

func GetClientScope() []string

func GetIdentity

func GetIdentity(Token *oauth.Token) (*oauthGoogle.Tokeninfo, error)

func InsertFile

func InsertFile(title string, description string, parentId string, mimeType string, data io.Reader) (*drive.File, error)

func Login

func Login(wf *web.WebFace, clientScopes []string) (*oauth2.Token, error)

Types

type ClientSecret

type ClientSecret struct {
	Id     string `json:"client_id"`
	Secret string `json:"client_secret"`
}

Jump to

Keyboard shortcuts

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