Documentation ¶
Overview ¶
Package gsmcalendar implements the Calendar API
Index ¶
- func ClearCalendar(calendarID string) (bool, error)
- func DeleteACL(calendarID, ruleID string) (bool, error)
- func DeleteCalendar(calendarID string) (bool, error)
- func DeleteCalendarListEntry(calendarID string) (bool, error)
- func DeleteEvent(calendarID, eventID, sendUpdates string) (bool, error)
- func GetACL(calendarID, ruleID, fields string) (*calendar.AclRule, error)
- func GetCalendar(calendarID, fields string) (*calendar.Calendar, error)
- func GetCalendarListEntry(calendarID, fields string) (*calendar.CalendarListEntry, error)
- func GetColors(fields string) (*calendar.Colors, error)
- func GetEvent(calendarID, eventID, timeZone, fields string, maxAttendees int64) (*calendar.Event, error)
- func GetSetting(setting, fields string) (*calendar.Setting, error)
- func ImportEvent(calendarID, fields string, event *calendar.Event, conferenceDataVersion int64, ...) (*calendar.Event, error)
- func InsertACL(calendarID, fields string, acl *calendar.AclRule, sendNotifications bool) (*calendar.AclRule, error)
- func InsertCalendar(cal *calendar.Calendar, fields string) (*calendar.Calendar, error)
- func InsertCalendarListEntry(calendarListEntry *calendar.CalendarListEntry, colorRgbFormat bool, ...) (*calendar.CalendarListEntry, error)
- func InsertEvent(calendarID, sendUpdates, fields string, event *calendar.Event, ...) (*calendar.Event, error)
- func ListACLs(calendarID, fields string, showDeleted bool, cap int) (<-chan *calendar.AclRule, <-chan error)
- func ListCalendarListEntries(minAccessRole, fields string, showHidden, showDeleted bool, cap int) (<-chan *calendar.CalendarListEntry, <-chan error)
- func ListEventInstances(calendarID, eventID, originalStart, timeZone, timeMax, timeMin, fields string, ...) (<-chan *calendar.Event, <-chan error)
- func ListEvents(...) (<-chan *calendar.Event, <-chan error)
- func ListSettings(fields string, cap int) (<-chan *calendar.Setting, <-chan error)
- func MoveEvent(calendarID, eventID, destination, sendUpdates, fields string) (*calendar.Event, error)
- func PatchACL(calendarID, ruleID, fields string, aclRule *calendar.AclRule, ...) (*calendar.AclRule, error)
- func PatchCalendar(calendarID, fields string, cal *calendar.Calendar) (*calendar.Calendar, error)
- func PatchCalendarListEntry(calendarID, fields string, calendarListEntry *calendar.CalendarListEntry, ...) (*calendar.CalendarListEntry, error)
- func PatchEvent(calendarID, eventID, sendUpdates, fields string, event *calendar.Event, ...) (*calendar.Event, error)
- func QueryFreeBusy(freeBusyRequest *calendar.FreeBusyRequest, fields string) (*calendar.FreeBusyResponse, error)
- func QuickAddEvent(calendarID, text, sendUpdates, fields string) (*calendar.Event, error)
- func SetClient(c *http.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCalendar ¶
ClearCalendar clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.
func DeleteCalendar ¶
DeleteCalendar deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
func DeleteCalendarListEntry ¶
DeleteCalendarListEntry removes a calendar from the user's calendar list.
func DeleteEvent ¶
DeleteEvent deletes an event.
func GetCalendar ¶
GetCalendar returns metadata for a calendar.
func GetCalendarListEntry ¶
GetCalendarListEntry returns a calendar from the user's calendar list.
func GetEvent ¶
func GetEvent(calendarID, eventID, timeZone, fields string, maxAttendees int64) (*calendar.Event, error)
GetEvent returns an event.
func GetSetting ¶
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 ¶
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 ¶
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 ¶
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 ¶
QuickAddEvent creates an event based on a simple text string.
Types ¶
This section is empty.