calendar

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(config *oauth2.Config) (*oauth2.Token, error)

func NewConfig

func NewConfig(clientID string, clientSecret string) *oauth2.Config

func RevokeToken

func RevokeToken(token *oauth2.Token) error

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, config *oauth2.Config, token *oauth2.Token) (*Client, error)

func (*Client) CreateCalendar

func (c *Client) CreateCalendar() (string, error)

func (*Client) InsertEvent

func (c *Client) InsertEvent(calendarID, summary string, start, end *time.Time) error

Jump to

Keyboard shortcuts

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