Documentation ¶
Overview ¶
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmcalendar implements the Calendar API Copyright © 2020 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
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) ([]*calendar.AclRule, error)
- func ListCalendarListEntries(minAccessRole, fields string, showHidden, showDeleted bool) ([]*calendar.CalendarListEntry, error)
- func ListEvents(...) ([]*calendar.Event, error)
- func ListInstances(calendarID, eventID, originalStart, timeZone, timeMax, timeMin, fields string, ...) ([]*calendar.Event, error)
- func ListSettings(fields string) ([]*calendar.Setting, 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 ListCalendarListEntries ¶
func ListCalendarListEntries(minAccessRole, fields string, showHidden, showDeleted bool) ([]*calendar.CalendarListEntry, error)
ListCalendarListEntries returns the calendars on the user's calendar list.
func ListEvents ¶
func ListEvents(calendarID, iCalUID, orderBy, q, timeZone, timeMax, timeMin, updatedMin, fields string, privateExtendedProperties, sharedExtendedProperties []string, maxAttendees int64, showDeleted, showHiddenInvitations, singleEvents bool) ([]*calendar.Event, error)
ListEvents returns events on the specified calendar.
func ListInstances ¶
func ListInstances(calendarID, eventID, originalStart, timeZone, timeMax, timeMin, fields string, maxAttendees int64, showDeleted bool) ([]*calendar.Event, error)
ListInstances returns instances of the specified recurring event.
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.