msgraph

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEvents

func ConvertEvents(events []msgraph.Event) gabby.Events

ConvertEvents takes vendor specific calendar events and creates gabby.Events with enriched metadata

func GetFileContentType

func GetFileContentType(b []byte) string

Types

type API

type API struct {
	HttpClient *http.Client
	Client     *msgraph.GraphServiceRequestBuilder
}

API represents the external calendar interface

func (*API) GetMe

func (a *API) GetMe(ctx context.Context) (string, error)

GetMe returns email address for the authenticated user

func (*API) GetName

func (a *API) GetName(ctx context.Context, id string) (string, error)

func (*API) GetPhoto

func (a *API) GetPhoto(ctx context.Context, id string) (*gabby.Photo, error)

func (*API) GetRecurringEvents

func (a *API) GetRecurringEvents(ctx context.Context) (gabby.Events, error)

GetRecurringEvents returns recurring events

func (*API) GetRecurringEventsWithInstancesForWeeks

func (a *API) GetRecurringEventsWithInstancesForWeeks(ctx context.Context, weeks int) (gabby.Events, error)

GetRecurringEventsWithInstancesForWeeks returns recurring events for a certain number of weeks from today

Jump to

Keyboard shortcuts

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