gsmcalendar

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gsmcalendar implements the Calendar API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCalendar

func ClearCalendar(calendarID string) (bool, error)

ClearCalendar clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.

func DeleteACL

func DeleteACL(calendarID, ruleID string) (bool, error)

DeleteACL deletes an access control rule.

func DeleteCalendar

func DeleteCalendar(calendarID string) (bool, error)

DeleteCalendar deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.

func DeleteCalendarListEntry

func DeleteCalendarListEntry(calendarID string) (bool, error)

DeleteCalendarListEntry removes a calendar from the user's calendar list.

func DeleteEvent

func DeleteEvent(calendarID, eventID, sendUpdates string) (bool, error)

DeleteEvent deletes an event.

func GetACL

func GetACL(calendarID, ruleID, fields string) (*calendar.AclRule, error)

GetACL returns an access control rule.

func GetCalendar

func GetCalendar(calendarID, fields string) (*calendar.Calendar, error)

GetCalendar returns metadata for a calendar.

func GetCalendarListEntry

func GetCalendarListEntry(calendarID, fields string) (*calendar.CalendarListEntry, error)

GetCalendarListEntry returns a calendar from the user's calendar list.

func GetColors

func GetColors(fields string) (*calendar.Colors, error)

GetColors returns the color definitions for calendars and events.

func GetEvent

func GetEvent(calendarID, eventID, timeZone, fields string, maxAttendees int64) (*calendar.Event, error)

GetEvent returns an event.

func GetSetting

func GetSetting(setting, fields string) (*calendar.Setting, error)

GetSetting returns a single user setting.

func ImportEvent

func ImportEvent(calendarID, fields string, event *calendar.Event, conferenceDataVersion int64, supportsAttachments bool) (*calendar.Event, error)

ImportEvent imports an event. This operation is used to add a private copy of an existing event to a calendar.

func InsertACL

func InsertACL(calendarID, fields string, acl *calendar.AclRule, sendNotifications bool) (*calendar.AclRule, error)

InsertACL creates an acl.

func InsertCalendar

func InsertCalendar(cal *calendar.Calendar, fields string) (*calendar.Calendar, error)

InsertCalendar creates a secondary calendar.

func InsertCalendarListEntry

func InsertCalendarListEntry(calendarListEntry *calendar.CalendarListEntry, colorRgbFormat bool, fields string) (*calendar.CalendarListEntry, error)

InsertCalendarListEntry inserts an existing calendar into the user's calendar list.

func InsertEvent

func InsertEvent(calendarID, sendUpdates, fields string, event *calendar.Event, conferenceDataVersion, maxAttendees int64, supportsAttachments bool) (*calendar.Event, error)

InsertEvent creates an event.

func ListACLs

func ListACLs(calendarID, fields string, showDeleted bool, cap int) (<-chan *calendar.AclRule, <-chan error)

ListACLs returns the rules in the access control list for the calendar.

func ListCalendarListEntries

func ListCalendarListEntries(minAccessRole, fields string, showHidden, showDeleted bool, cap int) (<-chan *calendar.CalendarListEntry, <-chan error)

ListCalendarListEntries returns the calendars on the user's calendar list.

func ListEventInstances added in v0.2.3

func ListEventInstances(calendarID, eventID, originalStart, timeZone, timeMax, timeMin, fields string, maxAttendees int64, showDeleted bool, cap int) (<-chan *calendar.Event, <-chan error)

ListEventInstances returns instances of the specified recurring event.

func ListEvents

func ListEvents(calendarID, iCalUID, orderBy, q, timeZone, timeMax, timeMin, updatedMin, fields string, privateExtendedProperties, sharedExtendedProperties []string, maxAttendees int64, showDeleted, showHiddenInvitations, singleEvents bool, cap int) (<-chan *calendar.Event, <-chan error)

ListEvents returns events on the specified calendar.

func ListSettings

func ListSettings(fields string, cap int) (<-chan *calendar.Setting, <-chan error)

ListSettings returns all user settings for the authenticated user.

func MoveEvent

func MoveEvent(calendarID, eventID, destination, sendUpdates, fields string) (*calendar.Event, error)

MoveEvent moves an event to another calendar, i.e. changes an event's organizer.

func PatchACL

func PatchACL(calendarID, ruleID, fields string, aclRule *calendar.AclRule, sendNotifications bool) (*calendar.AclRule, error)

PatchACL updates an access control rule. This method supports patch semantics.

func PatchCalendar

func PatchCalendar(calendarID, fields string, cal *calendar.Calendar) (*calendar.Calendar, error)

PatchCalendar updates metadata for a calendar. This method supports patch semantics.

func PatchCalendarListEntry

func PatchCalendarListEntry(calendarID, fields string, calendarListEntry *calendar.CalendarListEntry, colorRgbFormat bool) (*calendar.CalendarListEntry, error)

PatchCalendarListEntry updates an existing calendar on the user's calendar list. This method supports patch semantics.

func PatchEvent

func PatchEvent(calendarID, eventID, sendUpdates, fields string, event *calendar.Event, conferenceDataVersion, maxAttendees int64, supportsAttachments bool) (*calendar.Event, error)

PatchEvent Updates an event. This method supports patch semantics. The field values you specify replace the existing values. Fields that you don’t specify in the request remain unchanged. Array fields, if specified, overwrite the existing arrays; this discards any previous array elements.

func QueryFreeBusy

func QueryFreeBusy(freeBusyRequest *calendar.FreeBusyRequest, fields string) (*calendar.FreeBusyResponse, error)

QueryFreeBusy returns free/busy information for a set of calendars.

func QuickAddEvent

func QuickAddEvent(calendarID, text, sendUpdates, fields string) (*calendar.Event, error)

QuickAddEvent creates an event based on a simple text string.

func SetClient

func SetClient(c *http.Client)

SetClient is used to inject a *http.Client into the package

Types

This section is empty.

Jump to

Keyboard shortcuts

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