blob: 037d52a80d53cfc5baad0c8fcd53cc663e8117a6 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="calendar_v3.html">Calendar API</a> . <a href="calendar_v3.events.html">events</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(calendarId, eventId, sendNotifications=None)</a></code></p>
79<p class="firstline">Deletes an event.</p>
80<p class="toc_element">
81 <code><a href="#get">get(calendarId, eventId, alwaysIncludeEmail=None, timeZone=None, maxAttendees=None)</a></code></p>
82<p class="firstline">Returns an event.</p>
83<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070084 <code><a href="#import_">import_(calendarId, body, supportsAttachments=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Imports an event. This operation is used to add a private copy of an existing event to a calendar.</p>
86<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070087 <code><a href="#insert">insert(calendarId, body, sendNotifications=None, supportsAttachments=None, maxAttendees=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Creates an event.</p>
89<p class="toc_element">
90 <code><a href="#instances">instances(calendarId, eventId, timeMin=None, showDeleted=None, alwaysIncludeEmail=None, pageToken=None, maxAttendees=None, maxResults=None, timeMax=None, timeZone=None, originalStart=None)</a></code></p>
91<p class="firstline">Returns instances of the specified recurring event.</p>
92<p class="toc_element">
93 <code><a href="#instances_next">instances_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#list">list(calendarId, orderBy=None, showHiddenInvitations=None, timeMin=None, privateExtendedProperty=None, pageToken=None, updatedMin=None, singleEvents=None, alwaysIncludeEmail=None, showDeleted=None, sharedExtendedProperty=None, maxAttendees=None, syncToken=None, iCalUID=None, maxResults=None, timeMax=None, q=None, timeZone=None)</a></code></p>
97<p class="firstline">Returns events on the specified calendar.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
102 <code><a href="#move">move(calendarId, eventId, destination, sendNotifications=None)</a></code></p>
103<p class="firstline">Moves an event to another calendar, i.e. changes an event's organizer.</p>
104<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -0700105 <code><a href="#patch">patch(calendarId, eventId, body, sendNotifications=None, alwaysIncludeEmail=None, supportsAttachments=None, maxAttendees=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400106<p class="firstline">Updates an event. This method supports patch semantics.</p>
107<p class="toc_element">
108 <code><a href="#quickAdd">quickAdd(calendarId, text, sendNotifications=None)</a></code></p>
109<p class="firstline">Creates an event based on a simple text string.</p>
110<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -0700111 <code><a href="#update">update(calendarId, eventId, body, sendNotifications=None, alwaysIncludeEmail=None, supportsAttachments=None, maxAttendees=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400112<p class="firstline">Updates an event.</p>
113<p class="toc_element">
114 <code><a href="#watch">watch(calendarId, body, orderBy=None, showHiddenInvitations=None, timeMin=None, privateExtendedProperty=None, pageToken=None, updatedMin=None, singleEvents=None, alwaysIncludeEmail=None, showDeleted=None, sharedExtendedProperty=None, maxAttendees=None, syncToken=None, iCalUID=None, maxResults=None, timeMax=None, q=None, timeZone=None)</a></code></p>
115<p class="firstline">Watch for changes to Events resources.</p>
116<h3>Method Details</h3>
117<div class="method">
118 <code class="details" id="delete">delete(calendarId, eventId, sendNotifications=None)</code>
119 <pre>Deletes an event.
120
121Args:
Takashi Matsuo06694102015-09-11 13:55:40 -0700122 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -0400123 eventId: string, Event identifier. (required)
124 sendNotifications: boolean, Whether to send notifications about the deletion of the event. Optional. The default is False.
125</pre>
126</div>
127
128<div class="method">
129 <code class="details" id="get">get(calendarId, eventId, alwaysIncludeEmail=None, timeZone=None, maxAttendees=None)</code>
130 <pre>Returns an event.
131
132Args:
Takashi Matsuo06694102015-09-11 13:55:40 -0700133 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -0400134 eventId: string, Event identifier. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700135 alwaysIncludeEmail: boolean, Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400136 timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
137 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
138
139Returns:
140 An object of the form:
141
142 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700143 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
144 # In order to modify attachments the supportsAttachments request parameter should be set to true.
145 # There can be at most 25 attachments per event,
146 {
147 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
148 "title": "A String", # Attachment title.
149 "fileUrl": "A String", # URL link to the attachment.
150 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
151 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
152 "fileId": "A String", # ID of the attached file. Read-only.
153 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
154 },
155 ],
John Asmuth614db982014-04-24 15:46:26 -0400156 "creator": { # The creator of the event. Read-only.
157 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
158 "displayName": "A String", # The creator's name, if available.
159 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700160 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400161 },
Craig Citro065b5302014-08-14 00:47:23 -0700162 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -0400163 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
164 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700165 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
166 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400167 },
168 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -0700169 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -0400170 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
171 # - the length of the ID must be between 5 and 1024 characters
172 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -0700173 # If you do not specify an ID, it will be automatically generated by the server.
174 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400175 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700176 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -0400177 {
178 "comment": "A String", # The attendee's response comment. Optional.
179 "displayName": "A String", # The attendee's name, if available. Optional.
180 "responseStatus": "A String", # The attendee's response status. Possible values are:
181 # - "needsAction" - The attendee has not responded to the invitation.
182 # - "declined" - The attendee has declined the invitation.
183 # - "tentative" - The attendee has tentatively accepted the invitation.
184 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700185 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700186 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700187 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
188 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400189 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700190 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700191 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -0400192 },
193 ],
194 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
195 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800196 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700197 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400198 },
199 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700200 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -0400201 "A String",
202 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700203 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
204 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400205 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
206 },
207 "etag": "A String", # ETag of the resource.
208 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700209 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -0400210 "gadget": { # A gadget that extends this event.
211 "preferences": { # Preferences.
212 "a_key": "A String", # The preference name and corresponding value.
213 },
214 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -0700215 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
216 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
217 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400218 "type": "A String", # The gadget's type.
219 "display": "A String", # The gadget's display mode. Optional. Possible values are:
220 # - "icon" - The gadget displays next to the event's title in the calendar view.
221 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -0700222 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400223 },
224 "status": "A String", # Status of the event. Optional. Possible values are:
225 # - "confirmed" - The event is confirmed. This is the default status.
226 # - "tentative" - The event is tentatively confirmed.
227 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -0700228 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -0400229 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700230 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
231 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400232 "extendedProperties": { # Extended properties of the event.
233 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
234 "a_key": "A String", # The name of the shared property and the corresponding value.
235 },
236 "private": { # Properties that are private to the copy of the event that appears on this calendar.
237 "a_key": "A String", # The name of the private property and the corresponding value.
238 },
239 },
240 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
241 "sequence": 42, # Sequence number as per iCalendar.
242 "visibility": "default", # Visibility of the event. Optional. Possible values are:
243 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
244 # - "public" - The event is public and event details are visible to all readers of the calendar.
245 # - "private" - The event is private and only event attendees may view event details.
246 # - "confidential" - The event is private. This value is provided for compatibility reasons.
247 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
248 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
249 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800250 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700251 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400252 },
Craig Citro065b5302014-08-14 00:47:23 -0700253 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400254 "kind": "calendar#event", # Type of the resource ("calendar#event").
255 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700256 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700257 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800258 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400259 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -0700260 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -0400261 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700262 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -0400263 "method": "A String", # The method used by this reminder. Possible values are:
264 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400265 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -0400266 # - "popup" - Reminders are sent via a UI popup.
267 },
268 ],
269 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
270 },
271 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
272 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
273 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800274 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700275 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400276 },
277 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
278 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
279 # - "opaque" - The event blocks time on the calendar. This is the default value.
280 # - "transparent" - The event does not block time on the calendar.
281 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
282 }</pre>
283</div>
284
285<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700286 <code class="details" id="import_">import_(calendarId, body, supportsAttachments=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400287 <pre>Imports an event. This operation is used to add a private copy of an existing event to a calendar.
288
289Args:
Takashi Matsuo06694102015-09-11 13:55:40 -0700290 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -0400291 body: object, The request body. (required)
292 The object takes the form of:
293
294{
Takashi Matsuo06694102015-09-11 13:55:40 -0700295 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
296 # In order to modify attachments the supportsAttachments request parameter should be set to true.
297 # There can be at most 25 attachments per event,
298 {
299 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
300 "title": "A String", # Attachment title.
301 "fileUrl": "A String", # URL link to the attachment.
302 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
303 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
304 "fileId": "A String", # ID of the attached file. Read-only.
305 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
306 },
307 ],
John Asmuth614db982014-04-24 15:46:26 -0400308 "creator": { # The creator of the event. Read-only.
309 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
310 "displayName": "A String", # The creator's name, if available.
311 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700312 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400313 },
Craig Citro065b5302014-08-14 00:47:23 -0700314 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -0400315 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
316 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700317 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
318 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400319 },
320 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -0700321 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -0400322 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
323 # - the length of the ID must be between 5 and 1024 characters
324 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -0700325 # If you do not specify an ID, it will be automatically generated by the server.
326 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400327 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700328 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -0400329 {
330 "comment": "A String", # The attendee's response comment. Optional.
331 "displayName": "A String", # The attendee's name, if available. Optional.
332 "responseStatus": "A String", # The attendee's response status. Possible values are:
333 # - "needsAction" - The attendee has not responded to the invitation.
334 # - "declined" - The attendee has declined the invitation.
335 # - "tentative" - The attendee has tentatively accepted the invitation.
336 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700337 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700338 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700339 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
340 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400341 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700342 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700343 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -0400344 },
345 ],
346 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
347 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800348 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700349 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400350 },
351 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700352 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -0400353 "A String",
354 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700355 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
356 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400357 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
358 },
359 "etag": "A String", # ETag of the resource.
360 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700361 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -0400362 "gadget": { # A gadget that extends this event.
363 "preferences": { # Preferences.
364 "a_key": "A String", # The preference name and corresponding value.
365 },
366 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -0700367 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
368 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
369 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400370 "type": "A String", # The gadget's type.
371 "display": "A String", # The gadget's display mode. Optional. Possible values are:
372 # - "icon" - The gadget displays next to the event's title in the calendar view.
373 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -0700374 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400375 },
376 "status": "A String", # Status of the event. Optional. Possible values are:
377 # - "confirmed" - The event is confirmed. This is the default status.
378 # - "tentative" - The event is tentatively confirmed.
379 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -0700380 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -0400381 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700382 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
383 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400384 "extendedProperties": { # Extended properties of the event.
385 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
386 "a_key": "A String", # The name of the shared property and the corresponding value.
387 },
388 "private": { # Properties that are private to the copy of the event that appears on this calendar.
389 "a_key": "A String", # The name of the private property and the corresponding value.
390 },
391 },
392 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
393 "sequence": 42, # Sequence number as per iCalendar.
394 "visibility": "default", # Visibility of the event. Optional. Possible values are:
395 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
396 # - "public" - The event is public and event details are visible to all readers of the calendar.
397 # - "private" - The event is private and only event attendees may view event details.
398 # - "confidential" - The event is private. This value is provided for compatibility reasons.
399 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
400 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
401 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800402 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700403 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400404 },
Craig Citro065b5302014-08-14 00:47:23 -0700405 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400406 "kind": "calendar#event", # Type of the resource ("calendar#event").
407 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700408 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700409 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800410 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400411 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -0700412 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -0400413 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700414 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -0400415 "method": "A String", # The method used by this reminder. Possible values are:
416 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400417 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -0400418 # - "popup" - Reminders are sent via a UI popup.
419 },
420 ],
421 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
422 },
423 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
424 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
425 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800426 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700427 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400428 },
429 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
430 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
431 # - "opaque" - The event blocks time on the calendar. This is the default value.
432 # - "transparent" - The event does not block time on the calendar.
433 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
434 }
435
Takashi Matsuo06694102015-09-11 13:55:40 -0700436 supportsAttachments: boolean, Whether API client performing operation supports event attachments. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400437
438Returns:
439 An object of the form:
440
441 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700442 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
443 # In order to modify attachments the supportsAttachments request parameter should be set to true.
444 # There can be at most 25 attachments per event,
445 {
446 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
447 "title": "A String", # Attachment title.
448 "fileUrl": "A String", # URL link to the attachment.
449 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
450 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
451 "fileId": "A String", # ID of the attached file. Read-only.
452 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
453 },
454 ],
John Asmuth614db982014-04-24 15:46:26 -0400455 "creator": { # The creator of the event. Read-only.
456 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
457 "displayName": "A String", # The creator's name, if available.
458 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700459 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400460 },
Craig Citro065b5302014-08-14 00:47:23 -0700461 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -0400462 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
463 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700464 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
465 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400466 },
467 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -0700468 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -0400469 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
470 # - the length of the ID must be between 5 and 1024 characters
471 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -0700472 # If you do not specify an ID, it will be automatically generated by the server.
473 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400474 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700475 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -0400476 {
477 "comment": "A String", # The attendee's response comment. Optional.
478 "displayName": "A String", # The attendee's name, if available. Optional.
479 "responseStatus": "A String", # The attendee's response status. Possible values are:
480 # - "needsAction" - The attendee has not responded to the invitation.
481 # - "declined" - The attendee has declined the invitation.
482 # - "tentative" - The attendee has tentatively accepted the invitation.
483 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700484 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700485 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700486 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
487 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400488 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700489 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700490 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -0400491 },
492 ],
493 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
494 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800495 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700496 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400497 },
498 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700499 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -0400500 "A String",
501 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700502 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
503 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400504 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
505 },
506 "etag": "A String", # ETag of the resource.
507 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700508 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -0400509 "gadget": { # A gadget that extends this event.
510 "preferences": { # Preferences.
511 "a_key": "A String", # The preference name and corresponding value.
512 },
513 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -0700514 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
515 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
516 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400517 "type": "A String", # The gadget's type.
518 "display": "A String", # The gadget's display mode. Optional. Possible values are:
519 # - "icon" - The gadget displays next to the event's title in the calendar view.
520 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -0700521 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400522 },
523 "status": "A String", # Status of the event. Optional. Possible values are:
524 # - "confirmed" - The event is confirmed. This is the default status.
525 # - "tentative" - The event is tentatively confirmed.
526 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -0700527 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -0400528 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700529 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
530 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400531 "extendedProperties": { # Extended properties of the event.
532 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
533 "a_key": "A String", # The name of the shared property and the corresponding value.
534 },
535 "private": { # Properties that are private to the copy of the event that appears on this calendar.
536 "a_key": "A String", # The name of the private property and the corresponding value.
537 },
538 },
539 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
540 "sequence": 42, # Sequence number as per iCalendar.
541 "visibility": "default", # Visibility of the event. Optional. Possible values are:
542 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
543 # - "public" - The event is public and event details are visible to all readers of the calendar.
544 # - "private" - The event is private and only event attendees may view event details.
545 # - "confidential" - The event is private. This value is provided for compatibility reasons.
546 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
547 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
548 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800549 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700550 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400551 },
Craig Citro065b5302014-08-14 00:47:23 -0700552 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400553 "kind": "calendar#event", # Type of the resource ("calendar#event").
554 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700555 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700556 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800557 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400558 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -0700559 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -0400560 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700561 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -0400562 "method": "A String", # The method used by this reminder. Possible values are:
563 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400564 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -0400565 # - "popup" - Reminders are sent via a UI popup.
566 },
567 ],
568 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
569 },
570 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
571 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
572 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800573 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700574 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400575 },
576 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
577 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
578 # - "opaque" - The event blocks time on the calendar. This is the default value.
579 # - "transparent" - The event does not block time on the calendar.
580 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
581 }</pre>
582</div>
583
584<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700585 <code class="details" id="insert">insert(calendarId, body, sendNotifications=None, supportsAttachments=None, maxAttendees=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400586 <pre>Creates an event.
587
588Args:
Takashi Matsuo06694102015-09-11 13:55:40 -0700589 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -0400590 body: object, The request body. (required)
591 The object takes the form of:
592
593{
Takashi Matsuo06694102015-09-11 13:55:40 -0700594 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
595 # In order to modify attachments the supportsAttachments request parameter should be set to true.
596 # There can be at most 25 attachments per event,
597 {
598 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
599 "title": "A String", # Attachment title.
600 "fileUrl": "A String", # URL link to the attachment.
601 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
602 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
603 "fileId": "A String", # ID of the attached file. Read-only.
604 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
605 },
606 ],
John Asmuth614db982014-04-24 15:46:26 -0400607 "creator": { # The creator of the event. Read-only.
608 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
609 "displayName": "A String", # The creator's name, if available.
610 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700611 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400612 },
Craig Citro065b5302014-08-14 00:47:23 -0700613 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -0400614 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
615 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700616 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
617 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400618 },
619 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -0700620 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -0400621 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
622 # - the length of the ID must be between 5 and 1024 characters
623 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -0700624 # If you do not specify an ID, it will be automatically generated by the server.
625 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400626 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700627 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -0400628 {
629 "comment": "A String", # The attendee's response comment. Optional.
630 "displayName": "A String", # The attendee's name, if available. Optional.
631 "responseStatus": "A String", # The attendee's response status. Possible values are:
632 # - "needsAction" - The attendee has not responded to the invitation.
633 # - "declined" - The attendee has declined the invitation.
634 # - "tentative" - The attendee has tentatively accepted the invitation.
635 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700636 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700637 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700638 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
639 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400640 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700641 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700642 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -0400643 },
644 ],
645 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
646 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800647 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700648 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400649 },
650 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700651 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -0400652 "A String",
653 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700654 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
655 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400656 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
657 },
658 "etag": "A String", # ETag of the resource.
659 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700660 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -0400661 "gadget": { # A gadget that extends this event.
662 "preferences": { # Preferences.
663 "a_key": "A String", # The preference name and corresponding value.
664 },
665 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -0700666 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
667 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
668 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400669 "type": "A String", # The gadget's type.
670 "display": "A String", # The gadget's display mode. Optional. Possible values are:
671 # - "icon" - The gadget displays next to the event's title in the calendar view.
672 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -0700673 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400674 },
675 "status": "A String", # Status of the event. Optional. Possible values are:
676 # - "confirmed" - The event is confirmed. This is the default status.
677 # - "tentative" - The event is tentatively confirmed.
678 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -0700679 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -0400680 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700681 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
682 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400683 "extendedProperties": { # Extended properties of the event.
684 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
685 "a_key": "A String", # The name of the shared property and the corresponding value.
686 },
687 "private": { # Properties that are private to the copy of the event that appears on this calendar.
688 "a_key": "A String", # The name of the private property and the corresponding value.
689 },
690 },
691 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
692 "sequence": 42, # Sequence number as per iCalendar.
693 "visibility": "default", # Visibility of the event. Optional. Possible values are:
694 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
695 # - "public" - The event is public and event details are visible to all readers of the calendar.
696 # - "private" - The event is private and only event attendees may view event details.
697 # - "confidential" - The event is private. This value is provided for compatibility reasons.
698 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
699 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
700 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800701 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700702 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400703 },
Craig Citro065b5302014-08-14 00:47:23 -0700704 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400705 "kind": "calendar#event", # Type of the resource ("calendar#event").
706 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700707 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700708 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800709 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400710 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -0700711 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -0400712 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700713 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -0400714 "method": "A String", # The method used by this reminder. Possible values are:
715 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400716 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -0400717 # - "popup" - Reminders are sent via a UI popup.
718 },
719 ],
720 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
721 },
722 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
723 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
724 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800725 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700726 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400727 },
728 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
729 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
730 # - "opaque" - The event blocks time on the calendar. This is the default value.
731 # - "transparent" - The event does not block time on the calendar.
732 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
733 }
734
735 sendNotifications: boolean, Whether to send notifications about the creation of the new event. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700736 supportsAttachments: boolean, Whether API client performing operation supports event attachments. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400737 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
738
739Returns:
740 An object of the form:
741
742 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700743 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
744 # In order to modify attachments the supportsAttachments request parameter should be set to true.
745 # There can be at most 25 attachments per event,
746 {
747 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
748 "title": "A String", # Attachment title.
749 "fileUrl": "A String", # URL link to the attachment.
750 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
751 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
752 "fileId": "A String", # ID of the attached file. Read-only.
753 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
754 },
755 ],
John Asmuth614db982014-04-24 15:46:26 -0400756 "creator": { # The creator of the event. Read-only.
757 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
758 "displayName": "A String", # The creator's name, if available.
759 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700760 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400761 },
Craig Citro065b5302014-08-14 00:47:23 -0700762 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -0400763 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
764 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700765 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
766 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400767 },
768 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -0700769 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -0400770 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
771 # - the length of the ID must be between 5 and 1024 characters
772 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -0700773 # If you do not specify an ID, it will be automatically generated by the server.
774 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400775 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700776 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -0400777 {
778 "comment": "A String", # The attendee's response comment. Optional.
779 "displayName": "A String", # The attendee's name, if available. Optional.
780 "responseStatus": "A String", # The attendee's response status. Possible values are:
781 # - "needsAction" - The attendee has not responded to the invitation.
782 # - "declined" - The attendee has declined the invitation.
783 # - "tentative" - The attendee has tentatively accepted the invitation.
784 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700785 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700786 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700787 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
788 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400789 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700790 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700791 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -0400792 },
793 ],
794 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
795 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800796 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700797 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400798 },
799 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700800 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -0400801 "A String",
802 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700803 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
804 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400805 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
806 },
807 "etag": "A String", # ETag of the resource.
808 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700809 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -0400810 "gadget": { # A gadget that extends this event.
811 "preferences": { # Preferences.
812 "a_key": "A String", # The preference name and corresponding value.
813 },
814 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -0700815 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
816 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
817 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400818 "type": "A String", # The gadget's type.
819 "display": "A String", # The gadget's display mode. Optional. Possible values are:
820 # - "icon" - The gadget displays next to the event's title in the calendar view.
821 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -0700822 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400823 },
824 "status": "A String", # Status of the event. Optional. Possible values are:
825 # - "confirmed" - The event is confirmed. This is the default status.
826 # - "tentative" - The event is tentatively confirmed.
827 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -0700828 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -0400829 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700830 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
831 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400832 "extendedProperties": { # Extended properties of the event.
833 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
834 "a_key": "A String", # The name of the shared property and the corresponding value.
835 },
836 "private": { # Properties that are private to the copy of the event that appears on this calendar.
837 "a_key": "A String", # The name of the private property and the corresponding value.
838 },
839 },
840 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
841 "sequence": 42, # Sequence number as per iCalendar.
842 "visibility": "default", # Visibility of the event. Optional. Possible values are:
843 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
844 # - "public" - The event is public and event details are visible to all readers of the calendar.
845 # - "private" - The event is private and only event attendees may view event details.
846 # - "confidential" - The event is private. This value is provided for compatibility reasons.
847 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
848 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
849 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800850 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700851 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400852 },
Craig Citro065b5302014-08-14 00:47:23 -0700853 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400854 "kind": "calendar#event", # Type of the resource ("calendar#event").
855 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700856 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -0700857 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800858 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400859 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -0700860 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -0400861 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700862 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -0400863 "method": "A String", # The method used by this reminder. Possible values are:
864 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -0400866 # - "popup" - Reminders are sent via a UI popup.
867 },
868 ],
869 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
870 },
871 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
872 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
873 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800874 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700875 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400876 },
877 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
878 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
879 # - "opaque" - The event blocks time on the calendar. This is the default value.
880 # - "transparent" - The event does not block time on the calendar.
881 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
882 }</pre>
883</div>
884
885<div class="method">
886 <code class="details" id="instances">instances(calendarId, eventId, timeMin=None, showDeleted=None, alwaysIncludeEmail=None, pageToken=None, maxAttendees=None, maxResults=None, timeMax=None, timeZone=None, originalStart=None)</code>
887 <pre>Returns instances of the specified recurring event.
888
889Args:
Takashi Matsuo06694102015-09-11 13:55:40 -0700890 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -0400891 eventId: string, Recurring event identifier. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700892 timeMin: string, Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset.
Craig Citro065b5302014-08-14 00:47:23 -0700893 showDeleted: boolean, Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events will still be included if singleEvents is False. Optional. The default is False.
894 alwaysIncludeEmail: boolean, Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400895 pageToken: string, Token specifying which result page to return. Optional.
896 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
Craig Citro065b5302014-08-14 00:47:23 -0700897 maxResults: integer, Maximum number of events returned on one result page. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700898 timeMax: string, Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset.
John Asmuth614db982014-04-24 15:46:26 -0400899 timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
900 originalStart: string, The original start time of the instance in the result. Optional.
901
902Returns:
903 An object of the form:
904
905 {
Craig Citro065b5302014-08-14 00:47:23 -0700906 "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
John Asmuth614db982014-04-24 15:46:26 -0400907 "kind": "calendar#events", # Type of the collection ("calendar#events").
Craig Citro065b5302014-08-14 00:47:23 -0700908 "defaultReminders": [ # The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have reminders.useDefault set to True).
John Asmuth614db982014-04-24 15:46:26 -0400909 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700910 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -0400911 "method": "A String", # The method used by this reminder. Possible values are:
912 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400913 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -0400914 # - "popup" - Reminders are sent via a UI popup.
915 },
916 ],
917 "description": "A String", # Description of the calendar. Read-only.
918 "items": [ # List of events on the calendar.
919 {
Takashi Matsuo06694102015-09-11 13:55:40 -0700920 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
921 # In order to modify attachments the supportsAttachments request parameter should be set to true.
922 # There can be at most 25 attachments per event,
923 {
924 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
925 "title": "A String", # Attachment title.
926 "fileUrl": "A String", # URL link to the attachment.
927 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
928 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
929 "fileId": "A String", # ID of the attached file. Read-only.
930 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
931 },
932 ],
John Asmuth614db982014-04-24 15:46:26 -0400933 "creator": { # The creator of the event. Read-only.
934 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
935 "displayName": "A String", # The creator's name, if available.
936 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700937 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400938 },
Craig Citro065b5302014-08-14 00:47:23 -0700939 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -0400940 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
941 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -0700942 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
943 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -0400944 },
945 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -0700946 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -0400947 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
948 # - the length of the ID must be between 5 and 1024 characters
949 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -0700950 # If you do not specify an ID, it will be automatically generated by the server.
951 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -0400952 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700953 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -0400954 {
955 "comment": "A String", # The attendee's response comment. Optional.
956 "displayName": "A String", # The attendee's name, if available. Optional.
957 "responseStatus": "A String", # The attendee's response status. Possible values are:
958 # - "needsAction" - The attendee has not responded to the invitation.
959 # - "declined" - The attendee has declined the invitation.
960 # - "tentative" - The attendee has tentatively accepted the invitation.
961 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700962 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700963 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700964 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
965 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400966 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700967 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -0700968 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -0400969 },
970 ],
971 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
972 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -0800973 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -0700974 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -0400975 },
976 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -0700977 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -0400978 "A String",
979 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700980 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
981 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400982 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
983 },
984 "etag": "A String", # ETag of the resource.
985 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -0700986 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -0400987 "gadget": { # A gadget that extends this event.
988 "preferences": { # Preferences.
989 "a_key": "A String", # The preference name and corresponding value.
990 },
991 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -0700992 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
993 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
994 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -0400995 "type": "A String", # The gadget's type.
996 "display": "A String", # The gadget's display mode. Optional. Possible values are:
997 # - "icon" - The gadget displays next to the event's title in the calendar view.
998 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -0700999 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001000 },
1001 "status": "A String", # Status of the event. Optional. Possible values are:
1002 # - "confirmed" - The event is confirmed. This is the default status.
1003 # - "tentative" - The event is tentatively confirmed.
1004 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07001005 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001006 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001007 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
1008 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001009 "extendedProperties": { # Extended properties of the event.
1010 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
1011 "a_key": "A String", # The name of the shared property and the corresponding value.
1012 },
1013 "private": { # Properties that are private to the copy of the event that appears on this calendar.
1014 "a_key": "A String", # The name of the private property and the corresponding value.
1015 },
1016 },
1017 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
1018 "sequence": 42, # Sequence number as per iCalendar.
1019 "visibility": "default", # Visibility of the event. Optional. Possible values are:
1020 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
1021 # - "public" - The event is public and event details are visible to all readers of the calendar.
1022 # - "private" - The event is private and only event attendees may view event details.
1023 # - "confidential" - The event is private. This value is provided for compatibility reasons.
1024 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
1025 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
1026 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001027 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001028 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001029 },
Craig Citro065b5302014-08-14 00:47:23 -07001030 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001031 "kind": "calendar#event", # Type of the resource ("calendar#event").
1032 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001033 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07001034 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001035 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001036 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07001037 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04001038 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001039 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001040 "method": "A String", # The method used by this reminder. Possible values are:
1041 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001042 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001043 # - "popup" - Reminders are sent via a UI popup.
1044 },
1045 ],
1046 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
1047 },
1048 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
1049 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
1050 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001051 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001052 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001053 },
1054 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
1055 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
1056 # - "opaque" - The event blocks time on the calendar. This is the default value.
1057 # - "transparent" - The event does not block time on the calendar.
1058 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
1059 },
1060 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001061 "updated": "A String", # Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001062 "summary": "A String", # Title of the calendar. Read-only.
1063 "etag": "A String", # ETag of the collection.
1064 "timeZone": "A String", # The time zone of the calendar. Read-only.
1065 "nextSyncToken": "A String", # Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.
1066 "accessRole": "A String", # The user's access role for this calendar. Read-only. Possible values are:
1067 # - "none" - The user has no access.
1068 # - "freeBusyReader" - The user has read access to free/busy information.
1069 # - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
1070 # - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
1071 # - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
1072 }</pre>
1073</div>
1074
1075<div class="method">
1076 <code class="details" id="instances_next">instances_next(previous_request, previous_response)</code>
1077 <pre>Retrieves the next page of results.
1078
1079Args:
1080 previous_request: The request for the previous page. (required)
1081 previous_response: The response from the request for the previous page. (required)
1082
1083Returns:
1084 A request object that you can call 'execute()' on to request the next
1085 page. Returns None if there are no more items in the collection.
1086 </pre>
1087</div>
1088
1089<div class="method">
1090 <code class="details" id="list">list(calendarId, orderBy=None, showHiddenInvitations=None, timeMin=None, privateExtendedProperty=None, pageToken=None, updatedMin=None, singleEvents=None, alwaysIncludeEmail=None, showDeleted=None, sharedExtendedProperty=None, maxAttendees=None, syncToken=None, iCalUID=None, maxResults=None, timeMax=None, q=None, timeZone=None)</code>
1091 <pre>Returns events on the specified calendar.
1092
1093Args:
Takashi Matsuo06694102015-09-11 13:55:40 -07001094 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -04001095 orderBy: string, The order of the events returned in the result. Optional. The default is an unspecified, stable order.
1096 Allowed values
Craig Citro065b5302014-08-14 00:47:23 -07001097 startTime - Order by the start date/time (ascending). This is only available when querying single events (i.e. the parameter singleEvents is True)
John Asmuth614db982014-04-24 15:46:26 -04001098 updated - Order by last modification time (ascending).
1099 showHiddenInvitations: boolean, Whether to include hidden invitations in the result. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001100 timeMin: string, Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.
John Asmuth614db982014-04-24 15:46:26 -04001101 privateExtendedProperty: string, Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints. (repeated)
1102 pageToken: string, Token specifying which result page to return. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001103 updatedMin: string, Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time.
John Asmuth614db982014-04-24 15:46:26 -04001104 singleEvents: boolean, Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
Craig Citro065b5302014-08-14 00:47:23 -07001105 alwaysIncludeEmail: boolean, Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
1106 showDeleted: boolean, Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001107 sharedExtendedProperty: string, Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints. (repeated)
1108 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
Craig Citro065b5302014-08-14 00:47:23 -07001109 syncToken: string, Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All events deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False.
1110There are several query parameters that cannot be specified together with nextSyncToken to ensure consistency of the client state.
1111
1112These are:
1113- iCalUID
1114- orderBy
1115- privateExtendedProperty
1116- q
1117- sharedExtendedProperty
1118- timeMin
1119- timeMax
1120- updatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
1121Learn more about incremental synchronization.
1122Optional. The default is to return all entries.
1123 iCalUID: string, Specifies event ID in the iCalendar format to be included in the response. Optional.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001124 maxResults: integer, Maximum number of events returned on one result page. The number of events in the resulting page may be less than this value, or none at all, even if there are more events matching the query. Incomplete pages can be detected by a non-empty nextPageToken field in the response. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001125 timeMax: string, Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.
John Asmuth614db982014-04-24 15:46:26 -04001126 q: string, Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
1127 timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
1128
1129Returns:
1130 An object of the form:
1131
1132 {
Craig Citro065b5302014-08-14 00:47:23 -07001133 "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
John Asmuth614db982014-04-24 15:46:26 -04001134 "kind": "calendar#events", # Type of the collection ("calendar#events").
Craig Citro065b5302014-08-14 00:47:23 -07001135 "defaultReminders": [ # The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have reminders.useDefault set to True).
John Asmuth614db982014-04-24 15:46:26 -04001136 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001137 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001138 "method": "A String", # The method used by this reminder. Possible values are:
1139 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001140 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001141 # - "popup" - Reminders are sent via a UI popup.
1142 },
1143 ],
1144 "description": "A String", # Description of the calendar. Read-only.
1145 "items": [ # List of events on the calendar.
1146 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001147 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
1148 # In order to modify attachments the supportsAttachments request parameter should be set to true.
1149 # There can be at most 25 attachments per event,
1150 {
1151 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
1152 "title": "A String", # Attachment title.
1153 "fileUrl": "A String", # URL link to the attachment.
1154 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
1155 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
1156 "fileId": "A String", # ID of the attached file. Read-only.
1157 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
1158 },
1159 ],
John Asmuth614db982014-04-24 15:46:26 -04001160 "creator": { # The creator of the event. Read-only.
1161 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1162 "displayName": "A String", # The creator's name, if available.
1163 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001164 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001165 },
Craig Citro065b5302014-08-14 00:47:23 -07001166 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04001167 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1168 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001169 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
1170 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001171 },
1172 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07001173 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04001174 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
1175 # - the length of the ID must be between 5 and 1024 characters
1176 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07001177 # If you do not specify an ID, it will be automatically generated by the server.
1178 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001179 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001180 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04001181 {
1182 "comment": "A String", # The attendee's response comment. Optional.
1183 "displayName": "A String", # The attendee's name, if available. Optional.
1184 "responseStatus": "A String", # The attendee's response status. Possible values are:
1185 # - "needsAction" - The attendee has not responded to the invitation.
1186 # - "declined" - The attendee has declined the invitation.
1187 # - "tentative" - The attendee has tentatively accepted the invitation.
1188 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001189 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001190 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001191 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
1192 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001193 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001194 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001195 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04001196 },
1197 ],
1198 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
1199 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001200 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001201 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001202 },
1203 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001204 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04001205 "A String",
1206 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001207 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
1208 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001209 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
1210 },
1211 "etag": "A String", # ETag of the resource.
1212 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001213 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04001214 "gadget": { # A gadget that extends this event.
1215 "preferences": { # Preferences.
1216 "a_key": "A String", # The preference name and corresponding value.
1217 },
1218 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07001219 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
1220 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
1221 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001222 "type": "A String", # The gadget's type.
1223 "display": "A String", # The gadget's display mode. Optional. Possible values are:
1224 # - "icon" - The gadget displays next to the event's title in the calendar view.
1225 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07001226 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001227 },
1228 "status": "A String", # Status of the event. Optional. Possible values are:
1229 # - "confirmed" - The event is confirmed. This is the default status.
1230 # - "tentative" - The event is tentatively confirmed.
1231 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07001232 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001233 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001234 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
1235 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001236 "extendedProperties": { # Extended properties of the event.
1237 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
1238 "a_key": "A String", # The name of the shared property and the corresponding value.
1239 },
1240 "private": { # Properties that are private to the copy of the event that appears on this calendar.
1241 "a_key": "A String", # The name of the private property and the corresponding value.
1242 },
1243 },
1244 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
1245 "sequence": 42, # Sequence number as per iCalendar.
1246 "visibility": "default", # Visibility of the event. Optional. Possible values are:
1247 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
1248 # - "public" - The event is public and event details are visible to all readers of the calendar.
1249 # - "private" - The event is private and only event attendees may view event details.
1250 # - "confidential" - The event is private. This value is provided for compatibility reasons.
1251 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
1252 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
1253 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001254 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001255 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001256 },
Craig Citro065b5302014-08-14 00:47:23 -07001257 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001258 "kind": "calendar#event", # Type of the resource ("calendar#event").
1259 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001260 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07001261 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001262 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001263 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07001264 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04001265 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001266 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001267 "method": "A String", # The method used by this reminder. Possible values are:
1268 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001269 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001270 # - "popup" - Reminders are sent via a UI popup.
1271 },
1272 ],
1273 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
1274 },
1275 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
1276 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
1277 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001278 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001279 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001280 },
1281 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
1282 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
1283 # - "opaque" - The event blocks time on the calendar. This is the default value.
1284 # - "transparent" - The event does not block time on the calendar.
1285 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
1286 },
1287 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001288 "updated": "A String", # Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001289 "summary": "A String", # Title of the calendar. Read-only.
1290 "etag": "A String", # ETag of the collection.
1291 "timeZone": "A String", # The time zone of the calendar. Read-only.
1292 "nextSyncToken": "A String", # Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.
1293 "accessRole": "A String", # The user's access role for this calendar. Read-only. Possible values are:
1294 # - "none" - The user has no access.
1295 # - "freeBusyReader" - The user has read access to free/busy information.
1296 # - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
1297 # - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
1298 # - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
1299 }</pre>
1300</div>
1301
1302<div class="method">
1303 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1304 <pre>Retrieves the next page of results.
1305
1306Args:
1307 previous_request: The request for the previous page. (required)
1308 previous_response: The response from the request for the previous page. (required)
1309
1310Returns:
1311 A request object that you can call 'execute()' on to request the next
1312 page. Returns None if there are no more items in the collection.
1313 </pre>
1314</div>
1315
1316<div class="method">
1317 <code class="details" id="move">move(calendarId, eventId, destination, sendNotifications=None)</code>
1318 <pre>Moves an event to another calendar, i.e. changes an event's organizer.
1319
1320Args:
1321 calendarId: string, Calendar identifier of the source calendar where the event currently is on. (required)
1322 eventId: string, Event identifier. (required)
1323 destination: string, Calendar identifier of the target calendar where the event is to be moved to. (required)
1324 sendNotifications: boolean, Whether to send notifications about the change of the event's organizer. Optional. The default is False.
1325
1326Returns:
1327 An object of the form:
1328
1329 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001330 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
1331 # In order to modify attachments the supportsAttachments request parameter should be set to true.
1332 # There can be at most 25 attachments per event,
1333 {
1334 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
1335 "title": "A String", # Attachment title.
1336 "fileUrl": "A String", # URL link to the attachment.
1337 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
1338 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
1339 "fileId": "A String", # ID of the attached file. Read-only.
1340 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
1341 },
1342 ],
John Asmuth614db982014-04-24 15:46:26 -04001343 "creator": { # The creator of the event. Read-only.
1344 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1345 "displayName": "A String", # The creator's name, if available.
1346 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001347 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001348 },
Craig Citro065b5302014-08-14 00:47:23 -07001349 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04001350 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1351 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001352 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
1353 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001354 },
1355 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07001356 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04001357 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
1358 # - the length of the ID must be between 5 and 1024 characters
1359 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07001360 # If you do not specify an ID, it will be automatically generated by the server.
1361 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001362 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001363 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04001364 {
1365 "comment": "A String", # The attendee's response comment. Optional.
1366 "displayName": "A String", # The attendee's name, if available. Optional.
1367 "responseStatus": "A String", # The attendee's response status. Possible values are:
1368 # - "needsAction" - The attendee has not responded to the invitation.
1369 # - "declined" - The attendee has declined the invitation.
1370 # - "tentative" - The attendee has tentatively accepted the invitation.
1371 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001372 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001373 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001374 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
1375 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001376 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001377 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001378 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04001379 },
1380 ],
1381 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
1382 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001383 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001384 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001385 },
1386 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001387 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04001388 "A String",
1389 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001390 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
1391 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001392 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
1393 },
1394 "etag": "A String", # ETag of the resource.
1395 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001396 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04001397 "gadget": { # A gadget that extends this event.
1398 "preferences": { # Preferences.
1399 "a_key": "A String", # The preference name and corresponding value.
1400 },
1401 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07001402 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
1403 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
1404 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001405 "type": "A String", # The gadget's type.
1406 "display": "A String", # The gadget's display mode. Optional. Possible values are:
1407 # - "icon" - The gadget displays next to the event's title in the calendar view.
1408 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07001409 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001410 },
1411 "status": "A String", # Status of the event. Optional. Possible values are:
1412 # - "confirmed" - The event is confirmed. This is the default status.
1413 # - "tentative" - The event is tentatively confirmed.
1414 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07001415 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001416 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001417 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
1418 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001419 "extendedProperties": { # Extended properties of the event.
1420 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
1421 "a_key": "A String", # The name of the shared property and the corresponding value.
1422 },
1423 "private": { # Properties that are private to the copy of the event that appears on this calendar.
1424 "a_key": "A String", # The name of the private property and the corresponding value.
1425 },
1426 },
1427 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
1428 "sequence": 42, # Sequence number as per iCalendar.
1429 "visibility": "default", # Visibility of the event. Optional. Possible values are:
1430 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
1431 # - "public" - The event is public and event details are visible to all readers of the calendar.
1432 # - "private" - The event is private and only event attendees may view event details.
1433 # - "confidential" - The event is private. This value is provided for compatibility reasons.
1434 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
1435 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
1436 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001437 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001438 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001439 },
Craig Citro065b5302014-08-14 00:47:23 -07001440 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001441 "kind": "calendar#event", # Type of the resource ("calendar#event").
1442 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001443 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07001444 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001445 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001446 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07001447 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04001448 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001449 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001450 "method": "A String", # The method used by this reminder. Possible values are:
1451 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001452 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001453 # - "popup" - Reminders are sent via a UI popup.
1454 },
1455 ],
1456 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
1457 },
1458 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
1459 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
1460 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001461 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001462 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001463 },
1464 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
1465 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
1466 # - "opaque" - The event blocks time on the calendar. This is the default value.
1467 # - "transparent" - The event does not block time on the calendar.
1468 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
1469 }</pre>
1470</div>
1471
1472<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -07001473 <code class="details" id="patch">patch(calendarId, eventId, body, sendNotifications=None, alwaysIncludeEmail=None, supportsAttachments=None, maxAttendees=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001474 <pre>Updates an event. This method supports patch semantics.
1475
1476Args:
Takashi Matsuo06694102015-09-11 13:55:40 -07001477 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -04001478 eventId: string, Event identifier. (required)
1479 body: object, The request body. (required)
1480 The object takes the form of:
1481
1482{
Takashi Matsuo06694102015-09-11 13:55:40 -07001483 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
1484 # In order to modify attachments the supportsAttachments request parameter should be set to true.
1485 # There can be at most 25 attachments per event,
1486 {
1487 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
1488 "title": "A String", # Attachment title.
1489 "fileUrl": "A String", # URL link to the attachment.
1490 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
1491 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
1492 "fileId": "A String", # ID of the attached file. Read-only.
1493 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
1494 },
1495 ],
John Asmuth614db982014-04-24 15:46:26 -04001496 "creator": { # The creator of the event. Read-only.
1497 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1498 "displayName": "A String", # The creator's name, if available.
1499 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001500 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001501 },
Craig Citro065b5302014-08-14 00:47:23 -07001502 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04001503 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1504 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001505 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
1506 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001507 },
1508 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07001509 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04001510 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
1511 # - the length of the ID must be between 5 and 1024 characters
1512 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07001513 # If you do not specify an ID, it will be automatically generated by the server.
1514 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001515 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001516 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04001517 {
1518 "comment": "A String", # The attendee's response comment. Optional.
1519 "displayName": "A String", # The attendee's name, if available. Optional.
1520 "responseStatus": "A String", # The attendee's response status. Possible values are:
1521 # - "needsAction" - The attendee has not responded to the invitation.
1522 # - "declined" - The attendee has declined the invitation.
1523 # - "tentative" - The attendee has tentatively accepted the invitation.
1524 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001525 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001526 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001527 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
1528 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001529 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001530 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001531 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04001532 },
1533 ],
1534 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
1535 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001536 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001537 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001538 },
1539 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001540 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04001541 "A String",
1542 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001543 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
1544 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001545 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
1546 },
1547 "etag": "A String", # ETag of the resource.
1548 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001549 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04001550 "gadget": { # A gadget that extends this event.
1551 "preferences": { # Preferences.
1552 "a_key": "A String", # The preference name and corresponding value.
1553 },
1554 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07001555 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
1556 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
1557 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001558 "type": "A String", # The gadget's type.
1559 "display": "A String", # The gadget's display mode. Optional. Possible values are:
1560 # - "icon" - The gadget displays next to the event's title in the calendar view.
1561 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07001562 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001563 },
1564 "status": "A String", # Status of the event. Optional. Possible values are:
1565 # - "confirmed" - The event is confirmed. This is the default status.
1566 # - "tentative" - The event is tentatively confirmed.
1567 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07001568 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001569 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001570 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
1571 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001572 "extendedProperties": { # Extended properties of the event.
1573 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
1574 "a_key": "A String", # The name of the shared property and the corresponding value.
1575 },
1576 "private": { # Properties that are private to the copy of the event that appears on this calendar.
1577 "a_key": "A String", # The name of the private property and the corresponding value.
1578 },
1579 },
1580 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
1581 "sequence": 42, # Sequence number as per iCalendar.
1582 "visibility": "default", # Visibility of the event. Optional. Possible values are:
1583 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
1584 # - "public" - The event is public and event details are visible to all readers of the calendar.
1585 # - "private" - The event is private and only event attendees may view event details.
1586 # - "confidential" - The event is private. This value is provided for compatibility reasons.
1587 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
1588 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
1589 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001590 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001591 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001592 },
Craig Citro065b5302014-08-14 00:47:23 -07001593 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001594 "kind": "calendar#event", # Type of the resource ("calendar#event").
1595 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001596 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07001597 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001598 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001599 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07001600 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04001601 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001602 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001603 "method": "A String", # The method used by this reminder. Possible values are:
1604 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001605 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001606 # - "popup" - Reminders are sent via a UI popup.
1607 },
1608 ],
1609 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
1610 },
1611 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
1612 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
1613 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001614 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001615 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001616 },
1617 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
1618 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
1619 # - "opaque" - The event blocks time on the calendar. This is the default value.
1620 # - "transparent" - The event does not block time on the calendar.
1621 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
1622 }
1623
1624 sendNotifications: boolean, Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
Craig Citro065b5302014-08-14 00:47:23 -07001625 alwaysIncludeEmail: boolean, Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001626 supportsAttachments: boolean, Whether API client performing operation supports event attachments. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001627 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
1628
1629Returns:
1630 An object of the form:
1631
1632 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001633 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
1634 # In order to modify attachments the supportsAttachments request parameter should be set to true.
1635 # There can be at most 25 attachments per event,
1636 {
1637 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
1638 "title": "A String", # Attachment title.
1639 "fileUrl": "A String", # URL link to the attachment.
1640 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
1641 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
1642 "fileId": "A String", # ID of the attached file. Read-only.
1643 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
1644 },
1645 ],
John Asmuth614db982014-04-24 15:46:26 -04001646 "creator": { # The creator of the event. Read-only.
1647 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1648 "displayName": "A String", # The creator's name, if available.
1649 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001650 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001651 },
Craig Citro065b5302014-08-14 00:47:23 -07001652 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04001653 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1654 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001655 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
1656 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001657 },
1658 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07001659 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04001660 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
1661 # - the length of the ID must be between 5 and 1024 characters
1662 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07001663 # If you do not specify an ID, it will be automatically generated by the server.
1664 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001665 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001666 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04001667 {
1668 "comment": "A String", # The attendee's response comment. Optional.
1669 "displayName": "A String", # The attendee's name, if available. Optional.
1670 "responseStatus": "A String", # The attendee's response status. Possible values are:
1671 # - "needsAction" - The attendee has not responded to the invitation.
1672 # - "declined" - The attendee has declined the invitation.
1673 # - "tentative" - The attendee has tentatively accepted the invitation.
1674 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001675 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001676 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001677 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
1678 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001679 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001680 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001681 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04001682 },
1683 ],
1684 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
1685 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001686 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001687 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001688 },
1689 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001690 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04001691 "A String",
1692 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001693 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
1694 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001695 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
1696 },
1697 "etag": "A String", # ETag of the resource.
1698 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001699 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04001700 "gadget": { # A gadget that extends this event.
1701 "preferences": { # Preferences.
1702 "a_key": "A String", # The preference name and corresponding value.
1703 },
1704 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07001705 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
1706 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
1707 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001708 "type": "A String", # The gadget's type.
1709 "display": "A String", # The gadget's display mode. Optional. Possible values are:
1710 # - "icon" - The gadget displays next to the event's title in the calendar view.
1711 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07001712 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001713 },
1714 "status": "A String", # Status of the event. Optional. Possible values are:
1715 # - "confirmed" - The event is confirmed. This is the default status.
1716 # - "tentative" - The event is tentatively confirmed.
1717 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07001718 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001719 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001720 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
1721 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001722 "extendedProperties": { # Extended properties of the event.
1723 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
1724 "a_key": "A String", # The name of the shared property and the corresponding value.
1725 },
1726 "private": { # Properties that are private to the copy of the event that appears on this calendar.
1727 "a_key": "A String", # The name of the private property and the corresponding value.
1728 },
1729 },
1730 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
1731 "sequence": 42, # Sequence number as per iCalendar.
1732 "visibility": "default", # Visibility of the event. Optional. Possible values are:
1733 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
1734 # - "public" - The event is public and event details are visible to all readers of the calendar.
1735 # - "private" - The event is private and only event attendees may view event details.
1736 # - "confidential" - The event is private. This value is provided for compatibility reasons.
1737 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
1738 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
1739 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001740 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001741 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001742 },
Craig Citro065b5302014-08-14 00:47:23 -07001743 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001744 "kind": "calendar#event", # Type of the resource ("calendar#event").
1745 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001746 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07001747 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001748 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001749 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07001750 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04001751 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001752 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001753 "method": "A String", # The method used by this reminder. Possible values are:
1754 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001755 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001756 # - "popup" - Reminders are sent via a UI popup.
1757 },
1758 ],
1759 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
1760 },
1761 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
1762 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
1763 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001764 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001765 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001766 },
1767 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
1768 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
1769 # - "opaque" - The event blocks time on the calendar. This is the default value.
1770 # - "transparent" - The event does not block time on the calendar.
1771 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
1772 }</pre>
1773</div>
1774
1775<div class="method">
1776 <code class="details" id="quickAdd">quickAdd(calendarId, text, sendNotifications=None)</code>
1777 <pre>Creates an event based on a simple text string.
1778
1779Args:
Takashi Matsuo06694102015-09-11 13:55:40 -07001780 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -04001781 text: string, The text describing the event to be created. (required)
1782 sendNotifications: boolean, Whether to send notifications about the creation of the event. Optional. The default is False.
1783
1784Returns:
1785 An object of the form:
1786
1787 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001788 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
1789 # In order to modify attachments the supportsAttachments request parameter should be set to true.
1790 # There can be at most 25 attachments per event,
1791 {
1792 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
1793 "title": "A String", # Attachment title.
1794 "fileUrl": "A String", # URL link to the attachment.
1795 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
1796 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
1797 "fileId": "A String", # ID of the attached file. Read-only.
1798 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
1799 },
1800 ],
John Asmuth614db982014-04-24 15:46:26 -04001801 "creator": { # The creator of the event. Read-only.
1802 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1803 "displayName": "A String", # The creator's name, if available.
1804 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001805 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001806 },
Craig Citro065b5302014-08-14 00:47:23 -07001807 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04001808 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1809 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001810 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
1811 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001812 },
1813 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07001814 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04001815 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
1816 # - the length of the ID must be between 5 and 1024 characters
1817 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07001818 # If you do not specify an ID, it will be automatically generated by the server.
1819 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001820 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001821 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04001822 {
1823 "comment": "A String", # The attendee's response comment. Optional.
1824 "displayName": "A String", # The attendee's name, if available. Optional.
1825 "responseStatus": "A String", # The attendee's response status. Possible values are:
1826 # - "needsAction" - The attendee has not responded to the invitation.
1827 # - "declined" - The attendee has declined the invitation.
1828 # - "tentative" - The attendee has tentatively accepted the invitation.
1829 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001830 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001831 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001832 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
1833 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001834 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001835 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001836 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04001837 },
1838 ],
1839 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
1840 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001841 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001842 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001843 },
1844 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001845 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04001846 "A String",
1847 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001848 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
1849 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001850 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
1851 },
1852 "etag": "A String", # ETag of the resource.
1853 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001854 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04001855 "gadget": { # A gadget that extends this event.
1856 "preferences": { # Preferences.
1857 "a_key": "A String", # The preference name and corresponding value.
1858 },
1859 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07001860 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
1861 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
1862 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001863 "type": "A String", # The gadget's type.
1864 "display": "A String", # The gadget's display mode. Optional. Possible values are:
1865 # - "icon" - The gadget displays next to the event's title in the calendar view.
1866 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07001867 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04001868 },
1869 "status": "A String", # Status of the event. Optional. Possible values are:
1870 # - "confirmed" - The event is confirmed. This is the default status.
1871 # - "tentative" - The event is tentatively confirmed.
1872 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07001873 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04001874 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07001875 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
1876 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001877 "extendedProperties": { # Extended properties of the event.
1878 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
1879 "a_key": "A String", # The name of the shared property and the corresponding value.
1880 },
1881 "private": { # Properties that are private to the copy of the event that appears on this calendar.
1882 "a_key": "A String", # The name of the private property and the corresponding value.
1883 },
1884 },
1885 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
1886 "sequence": 42, # Sequence number as per iCalendar.
1887 "visibility": "default", # Visibility of the event. Optional. Possible values are:
1888 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
1889 # - "public" - The event is public and event details are visible to all readers of the calendar.
1890 # - "private" - The event is private and only event attendees may view event details.
1891 # - "confidential" - The event is private. This value is provided for compatibility reasons.
1892 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
1893 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
1894 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001895 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001896 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001897 },
Craig Citro065b5302014-08-14 00:47:23 -07001898 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001899 "kind": "calendar#event", # Type of the resource ("calendar#event").
1900 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001901 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07001902 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001903 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001904 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07001905 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04001906 {
Takashi Matsuo06694102015-09-11 13:55:40 -07001907 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04001908 "method": "A String", # The method used by this reminder. Possible values are:
1909 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001910 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04001911 # - "popup" - Reminders are sent via a UI popup.
1912 },
1913 ],
1914 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
1915 },
1916 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
1917 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
1918 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001919 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001920 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001921 },
1922 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
1923 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
1924 # - "opaque" - The event blocks time on the calendar. This is the default value.
1925 # - "transparent" - The event does not block time on the calendar.
1926 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
1927 }</pre>
1928</div>
1929
1930<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -07001931 <code class="details" id="update">update(calendarId, eventId, body, sendNotifications=None, alwaysIncludeEmail=None, supportsAttachments=None, maxAttendees=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001932 <pre>Updates an event.
1933
1934Args:
Takashi Matsuo06694102015-09-11 13:55:40 -07001935 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -04001936 eventId: string, Event identifier. (required)
1937 body: object, The request body. (required)
1938 The object takes the form of:
1939
1940{
Takashi Matsuo06694102015-09-11 13:55:40 -07001941 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
1942 # In order to modify attachments the supportsAttachments request parameter should be set to true.
1943 # There can be at most 25 attachments per event,
1944 {
1945 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
1946 "title": "A String", # Attachment title.
1947 "fileUrl": "A String", # URL link to the attachment.
1948 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
1949 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
1950 "fileId": "A String", # ID of the attached file. Read-only.
1951 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
1952 },
1953 ],
John Asmuth614db982014-04-24 15:46:26 -04001954 "creator": { # The creator of the event. Read-only.
1955 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1956 "displayName": "A String", # The creator's name, if available.
1957 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001958 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001959 },
Craig Citro065b5302014-08-14 00:47:23 -07001960 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04001961 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
1962 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07001963 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
1964 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04001965 },
1966 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07001967 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04001968 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
1969 # - the length of the ID must be between 5 and 1024 characters
1970 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07001971 # If you do not specify an ID, it will be automatically generated by the server.
1972 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04001973 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001974 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04001975 {
1976 "comment": "A String", # The attendee's response comment. Optional.
1977 "displayName": "A String", # The attendee's name, if available. Optional.
1978 "responseStatus": "A String", # The attendee's response status. Possible values are:
1979 # - "needsAction" - The attendee has not responded to the invitation.
1980 # - "declined" - The attendee has declined the invitation.
1981 # - "tentative" - The attendee has tentatively accepted the invitation.
1982 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001983 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001984 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001985 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
1986 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04001987 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001988 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07001989 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04001990 },
1991 ],
1992 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
1993 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08001994 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07001995 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04001996 },
1997 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07001998 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04001999 "A String",
2000 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07002001 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
2002 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04002003 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
2004 },
2005 "etag": "A String", # ETag of the resource.
2006 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07002007 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04002008 "gadget": { # A gadget that extends this event.
2009 "preferences": { # Preferences.
2010 "a_key": "A String", # The preference name and corresponding value.
2011 },
2012 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07002013 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
2014 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
2015 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04002016 "type": "A String", # The gadget's type.
2017 "display": "A String", # The gadget's display mode. Optional. Possible values are:
2018 # - "icon" - The gadget displays next to the event's title in the calendar view.
2019 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07002020 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04002021 },
2022 "status": "A String", # Status of the event. Optional. Possible values are:
2023 # - "confirmed" - The event is confirmed. This is the default status.
2024 # - "tentative" - The event is tentatively confirmed.
2025 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07002026 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04002027 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07002028 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
2029 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04002030 "extendedProperties": { # Extended properties of the event.
2031 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
2032 "a_key": "A String", # The name of the shared property and the corresponding value.
2033 },
2034 "private": { # Properties that are private to the copy of the event that appears on this calendar.
2035 "a_key": "A String", # The name of the private property and the corresponding value.
2036 },
2037 },
2038 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
2039 "sequence": 42, # Sequence number as per iCalendar.
2040 "visibility": "default", # Visibility of the event. Optional. Possible values are:
2041 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
2042 # - "public" - The event is public and event details are visible to all readers of the calendar.
2043 # - "private" - The event is private and only event attendees may view event details.
2044 # - "confidential" - The event is private. This value is provided for compatibility reasons.
2045 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
2046 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
2047 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08002048 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07002049 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04002050 },
Craig Citro065b5302014-08-14 00:47:23 -07002051 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002052 "kind": "calendar#event", # Type of the resource ("calendar#event").
2053 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07002054 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07002055 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002056 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002057 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07002058 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04002059 {
Takashi Matsuo06694102015-09-11 13:55:40 -07002060 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04002061 "method": "A String", # The method used by this reminder. Possible values are:
2062 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002063 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04002064 # - "popup" - Reminders are sent via a UI popup.
2065 },
2066 ],
2067 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
2068 },
2069 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
2070 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
2071 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08002072 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07002073 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04002074 },
2075 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
2076 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
2077 # - "opaque" - The event blocks time on the calendar. This is the default value.
2078 # - "transparent" - The event does not block time on the calendar.
2079 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
2080 }
2081
2082 sendNotifications: boolean, Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
Craig Citro065b5302014-08-14 00:47:23 -07002083 alwaysIncludeEmail: boolean, Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07002084 supportsAttachments: boolean, Whether API client performing operation supports event attachments. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002085 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
2086
2087Returns:
2088 An object of the form:
2089
2090 {
Takashi Matsuo06694102015-09-11 13:55:40 -07002091 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
2092 # In order to modify attachments the supportsAttachments request parameter should be set to true.
2093 # There can be at most 25 attachments per event,
2094 {
2095 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
2096 "title": "A String", # Attachment title.
2097 "fileUrl": "A String", # URL link to the attachment.
2098 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
2099 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
2100 "fileId": "A String", # ID of the attached file. Read-only.
2101 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
2102 },
2103 ],
John Asmuth614db982014-04-24 15:46:26 -04002104 "creator": { # The creator of the event. Read-only.
2105 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
2106 "displayName": "A String", # The creator's name, if available.
2107 "email": "A String", # The creator's email address, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07002108 "id": "A String", # The creator's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04002109 },
Craig Citro065b5302014-08-14 00:47:23 -07002110 "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
John Asmuth614db982014-04-24 15:46:26 -04002111 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
2112 "displayName": "A String", # The organizer's name, if available.
Takashi Matsuo06694102015-09-11 13:55:40 -07002113 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
2114 "id": "A String", # The organizer's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
John Asmuth614db982014-04-24 15:46:26 -04002115 },
2116 "summary": "A String", # Title of the event.
Takashi Matsuo06694102015-09-11 13:55:40 -07002117 "id": "A String", # Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
John Asmuth614db982014-04-24 15:46:26 -04002118 # - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
2119 # - the length of the ID must be between 5 and 1024 characters
2120 # - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
Takashi Matsuo06694102015-09-11 13:55:40 -07002121 # If you do not specify an ID, it will be automatically generated by the server.
2122 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04002123 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07002124 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
John Asmuth614db982014-04-24 15:46:26 -04002125 {
2126 "comment": "A String", # The attendee's response comment. Optional.
2127 "displayName": "A String", # The attendee's name, if available. Optional.
2128 "responseStatus": "A String", # The attendee's response status. Possible values are:
2129 # - "needsAction" - The attendee has not responded to the invitation.
2130 # - "declined" - The attendee has declined the invitation.
2131 # - "tentative" - The attendee has tentatively accepted the invitation.
2132 # - "accepted" - The attendee has accepted the invitation.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07002133 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07002134 "id": "A String", # The attendee's Profile ID, if available. It corresponds to theid field in the People collection of the Google+ API
Craig Citro0e5b9bf2014-10-15 10:26:14 -07002135 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
2136 "resource": false, # Whether the attendee is a resource. Read-only. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002137 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07002138 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07002139 "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
John Asmuth614db982014-04-24 15:46:26 -04002140 },
2141 ],
2142 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
2143 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08002144 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07002145 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04002146 },
2147 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
Takashi Matsuo06694102015-09-11 13:55:40 -07002148 "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
John Asmuth614db982014-04-24 15:46:26 -04002149 "A String",
2150 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07002151 "source": { # Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
2152 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04002153 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
2154 },
2155 "etag": "A String", # ETag of the resource.
2156 "location": "A String", # Geographic location of the event as free-form text. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07002157 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
John Asmuth614db982014-04-24 15:46:26 -04002158 "gadget": { # A gadget that extends this event.
2159 "preferences": { # Preferences.
2160 "a_key": "A String", # The preference name and corresponding value.
2161 },
2162 "title": "A String", # The gadget's title.
Takashi Matsuo06694102015-09-11 13:55:40 -07002163 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
2164 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
2165 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04002166 "type": "A String", # The gadget's type.
2167 "display": "A String", # The gadget's display mode. Optional. Possible values are:
2168 # - "icon" - The gadget displays next to the event's title in the calendar view.
2169 # - "chip" - The gadget displays when the event is clicked.
Takashi Matsuo06694102015-09-11 13:55:40 -07002170 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
John Asmuth614db982014-04-24 15:46:26 -04002171 },
2172 "status": "A String", # Status of the event. Optional. Possible values are:
2173 # - "confirmed" - The event is confirmed. This is the default status.
2174 # - "tentative" - The event is tentatively confirmed.
2175 # - "cancelled" - The event is cancelled.
Takashi Matsuo06694102015-09-11 13:55:40 -07002176 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
John Asmuth614db982014-04-24 15:46:26 -04002177 "description": "A String", # Description of the event. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07002178 "iCalUID": "A String", # Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
2179 # Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
John Asmuth614db982014-04-24 15:46:26 -04002180 "extendedProperties": { # Extended properties of the event.
2181 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
2182 "a_key": "A String", # The name of the shared property and the corresponding value.
2183 },
2184 "private": { # Properties that are private to the copy of the event that appears on this calendar.
2185 "a_key": "A String", # The name of the private property and the corresponding value.
2186 },
2187 },
2188 "endTimeUnspecified": false, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
2189 "sequence": 42, # Sequence number as per iCalendar.
2190 "visibility": "default", # Visibility of the event. Optional. Possible values are:
2191 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
2192 # - "public" - The event is public and event details are visible to all readers of the calendar.
2193 # - "private" - The event is private and only event attendees may view event details.
2194 # - "confidential" - The event is private. This value is provided for compatibility reasons.
2195 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
2196 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
2197 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08002198 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07002199 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04002200 },
Craig Citro065b5302014-08-14 00:47:23 -07002201 "attendeesOmitted": false, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002202 "kind": "calendar#event", # Type of the resource ("calendar#event").
2203 "locked": false, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
Takashi Matsuo06694102015-09-11 13:55:40 -07002204 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
Craig Citro065b5302014-08-14 00:47:23 -07002205 "colorId": "A String", # The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002206 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002207 "reminders": { # Information about the event's reminders for the authenticated user.
Takashi Matsuo06694102015-09-11 13:55:40 -07002208 "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event. The maximum number of override reminders is 5.
John Asmuth614db982014-04-24 15:46:26 -04002209 {
Takashi Matsuo06694102015-09-11 13:55:40 -07002210 "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
John Asmuth614db982014-04-24 15:46:26 -04002211 "method": "A String", # The method used by this reminder. Possible values are:
2212 # - "email" - Reminders are sent via email.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002213 # - "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
John Asmuth614db982014-04-24 15:46:26 -04002214 # - "popup" - Reminders are sent via a UI popup.
2215 },
2216 ],
2217 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
2218 },
2219 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
2220 "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
2221 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
Craig Citroe633be12015-03-02 13:40:36 -08002222 "timeZone": "A String", # The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
Takashi Matsuo06694102015-09-11 13:55:40 -07002223 "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
John Asmuth614db982014-04-24 15:46:26 -04002224 },
2225 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
2226 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
2227 # - "opaque" - The event blocks time on the calendar. This is the default value.
2228 # - "transparent" - The event does not block time on the calendar.
2229 "privateCopy": false, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
2230 }</pre>
2231</div>
2232
2233<div class="method">
2234 <code class="details" id="watch">watch(calendarId, body, orderBy=None, showHiddenInvitations=None, timeMin=None, privateExtendedProperty=None, pageToken=None, updatedMin=None, singleEvents=None, alwaysIncludeEmail=None, showDeleted=None, sharedExtendedProperty=None, maxAttendees=None, syncToken=None, iCalUID=None, maxResults=None, timeMax=None, q=None, timeZone=None)</code>
2235 <pre>Watch for changes to Events resources.
2236
2237Args:
Takashi Matsuo06694102015-09-11 13:55:40 -07002238 calendarId: string, Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. (required)
John Asmuth614db982014-04-24 15:46:26 -04002239 body: object, The request body. (required)
2240 The object takes the form of:
2241
2242{
2243 "resourceUri": "A String", # A version-specific identifier for the watched resource.
2244 "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
2245 "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
2246 "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
2247 "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
2248 "params": { # Additional parameters controlling delivery channel behavior. Optional.
2249 "a_key": "A String", # Declares a new parameter by name.
2250 },
2251 "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
2252 "address": "A String", # The address where notifications are delivered for this channel.
2253 "type": "A String", # The type of delivery mechanism used for this channel.
2254 "id": "A String", # A UUID or similar unique string that identifies this channel.
2255 }
2256
2257 orderBy: string, The order of the events returned in the result. Optional. The default is an unspecified, stable order.
2258 Allowed values
Craig Citro065b5302014-08-14 00:47:23 -07002259 startTime - Order by the start date/time (ascending). This is only available when querying single events (i.e. the parameter singleEvents is True)
John Asmuth614db982014-04-24 15:46:26 -04002260 updated - Order by last modification time (ascending).
2261 showHiddenInvitations: boolean, Whether to include hidden invitations in the result. Optional. The default is False.
Takashi Matsuo06694102015-09-11 13:55:40 -07002262 timeMin: string, Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.
John Asmuth614db982014-04-24 15:46:26 -04002263 privateExtendedProperty: string, Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints. (repeated)
2264 pageToken: string, Token specifying which result page to return. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07002265 updatedMin: string, Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time.
John Asmuth614db982014-04-24 15:46:26 -04002266 singleEvents: boolean, Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
Craig Citro065b5302014-08-14 00:47:23 -07002267 alwaysIncludeEmail: boolean, Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
2268 showDeleted: boolean, Whether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -04002269 sharedExtendedProperty: string, Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints. (repeated)
2270 maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
Craig Citro065b5302014-08-14 00:47:23 -07002271 syncToken: string, Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All events deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False.
2272There are several query parameters that cannot be specified together with nextSyncToken to ensure consistency of the client state.
2273
2274These are:
2275- iCalUID
2276- orderBy
2277- privateExtendedProperty
2278- q
2279- sharedExtendedProperty
2280- timeMin
2281- timeMax
2282- updatedMin If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken.
2283Learn more about incremental synchronization.
2284Optional. The default is to return all entries.
2285 iCalUID: string, Specifies event ID in the iCalendar format to be included in the response. Optional.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002286 maxResults: integer, Maximum number of events returned on one result page. The number of events in the resulting page may be less than this value, or none at all, even if there are more events matching the query. Incomplete pages can be detected by a non-empty nextPageToken field in the response. By default the value is 250 events. The page size can never be larger than 2500 events. Optional.
Takashi Matsuo06694102015-09-11 13:55:40 -07002287 timeMax: string, Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.
John Asmuth614db982014-04-24 15:46:26 -04002288 q: string, Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
2289 timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
2290
2291Returns:
2292 An object of the form:
2293
2294 {
2295 "resourceUri": "A String", # A version-specific identifier for the watched resource.
2296 "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
2297 "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
2298 "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
2299 "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
2300 "params": { # Additional parameters controlling delivery channel behavior. Optional.
2301 "a_key": "A String", # Declares a new parameter by name.
2302 },
2303 "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
2304 "address": "A String", # The address where notifications are delivered for this channel.
2305 "type": "A String", # The type of delivery mechanism used for this channel.
2306 "id": "A String", # A UUID or similar unique string that identifies this channel.
2307 }</pre>
2308</div>
2309
2310</body></html>