gtasks

package
v0.0.0-...-f392bf3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client encapsulates the Google Tasks and OAuth clients, and exposes high-level operations on Google Tasks.

func NewClient

func NewClient(path string) (*Client, error)

NewClient creates a new Google Tasks client from either environment variables or the provided credentials JSON file.

func NewClientFromEnvVars

func NewClientFromEnvVars() (*Client, error)

NewClientFromEnvVars creates a new Google Tasks client from environment variables.

func NewClientFromJSONFile

func NewClientFromJSONFile(path string) (*Client, error)

NewClientFromJSONFile creates a new Google Tasks client from the provided credentials JSON file.

func (Client) DeleteAll

func (c Client) DeleteAll() error

DeleteAll deletes all tasks in all lists.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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