gdapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialsSettings

type CredentialsSettings struct {
	ClientID                string
	ProjectID               string
	AuthURI                 string
	TokenURI                string
	AuthProviderX509CertURL string
	ClientSecret            string
}

type GoogleDriveAPI

type GoogleDriveAPI struct {
	// contains filtered or unexported fields
}

func NewGoogleDriveAPI

func NewGoogleDriveAPI(credCfg CredentialsSettings, tokenCfg TokenSettings, timeout int) (*GoogleDriveAPI, error)

func (*GoogleDriveAPI) Download

func (g *GoogleDriveAPI) Download(fileID string) ([]byte, error)

type TokenSettings

type TokenSettings struct {
	AccessToken  string
	TokenType    string
	RefreshToken string
	Expiry       string
}

Jump to

Keyboard shortcuts

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