client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package client provides OAuth2 client setup for Google APIs.

Index

Constants

View Source
const (
	// TokenFile is the path to the OAuth token file.
	TokenFile = "data/token.json"
)

Variables

This section is empty.

Functions

func New

func New(secretFilePath string, scope ...string) (*http.Client, error)

New creates a new HTTP client with OAuth2 credentials from a file path.

func NewFromJSON

func NewFromJSON(secretJSON []byte, scope ...string) (*http.Client, error)

NewFromJSON creates a new HTTP client with OAuth2 credentials from JSON content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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