gsuite

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

gsuite-calendar

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	UserEmail string
	//Path to file with service account credentials
	CredentialsPath string
	RoomID          string
}

func (*Calendar) AuthenticateClient

func (c *Calendar) AuthenticateClient(ctx context.Context) (*calendar.Service, error)

func (*Calendar) CreateEvent

func (c *Calendar) CreateEvent(ctx context.Context, event calendars.Event) error

func (*Calendar) GetCalendarID

func (c *Calendar) GetCalendarID(calSvc *calendar.Service) (string, error)

func (*Calendar) GetEvents

func (c *Calendar) GetEvents(ctx context.Context) ([]calendars.Event, error)

Jump to

Keyboard shortcuts

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