· 6 years ago · Sep 12, 2019, 05:14 PM
1Returns:
2 An object of the form:
3
4 {
5 "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.
6 "kind": "calendar#events", # Type of the collection ("calendar#events").
7 "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).
8 {
9 "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).
10 # Required when adding a reminder.
11 "method": "A String", # The method used by this reminder. Possible values are:
12 # - "email" - Reminders are sent via email.
13 # - "sms" - Deprecated. Once this feature is shutdown, the API will no longer return reminders using this method. Any newly added SMS reminders will be ignored. See Google Calendar SMS notifications to be removed for more information.
14 # Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
15 # - "popup" - Reminders are sent via a UI popup.
16 # Required when adding a reminder.
17 },
18 ],
19 "description": "A String", # Description of the calendar. Read-only.
20 "items": [ # List of events on the calendar.
21 {
22 "attachments": [ # File attachments for the event. Currently only Google Drive attachments are supported.
23 # In order to modify attachments the supportsAttachments request parameter should be set to true.
24 # There can be at most 25 attachments per event,
25 {
26 "mimeType": "A String", # Internet media type (MIME type) of the attachment.
27 "title": "A String", # Attachment title.
28 "fileUrl": "A String", # URL link to the attachment.
29 # For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
30 # Required when adding an attachment.
31 "iconLink": "A String", # URL link to the attachment's icon. Read-only.
32 "fileId": "A String", # ID of the attached file. Read-only.
33 # For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
34 },
35 ],
36 "creator": { # The creator of the event. Read-only.
37 "self": false, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
38 "displayName": "A String", # The creator's name, if available.
39 "email": "A String", # The creator's email address, if available.
40 "id": "A String", # The creator's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API
41 },
42 "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.
43 "self": false, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
44 "displayName": "A String", # The organizer's name, if available.
45 "email": "A String", # The organizer's email address, if available. It must be a valid email address as per RFC5322.
46 "id": "A String", # The organizer's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API
47 },
48 "summary": "A String", # Title of the event.
49 "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:
50 # - 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
51 # - the length of the ID must be between 5 and 1024 characters
52 # - 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.
53 # If you do not specify an ID, it will be automatically generated by the server.
54 # 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.
55 "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
56 "attendees": [ # The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users.
57 {
58 "comment": "A String", # The attendee's response comment. Optional.
59 "displayName": "A String", # The attendee's name, if available. Optional.
60 "responseStatus": "A String", # The attendee's response status. Possible values are:
61 # - "needsAction" - The attendee has not responded to the invitation.
62 # - "declined" - The attendee has declined the invitation.
63 # - "tentative" - The attendee has tentatively accepted the invitation.
64 # - "accepted" - The attendee has accepted the invitation.
65 "self": false, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
66 "id": "A String", # The attendee's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API
67 "additionalGuests": 0, # Number of additional guests. Optional. The default is 0.
68 "resource": false, # Whether the attendee is a resource. Can only be set when the attendee is added to the event for the first time. Subsequent modifications are ignored. Optional. The default is False.
69 "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
70 "optional": false, # Whether this is an optional attendee. Optional. The default is False.
71 "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.
72 # Required when adding an attendee.
73 },
74 ],
75 "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
76 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
77 "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.
78 "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.
79 },
80 "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
81 "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.
82 "A String",
83 ],
84 "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.
85 "url": "A String", # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS.
86 "title": "A String", # Title of the source; for example a title of a web page or an email subject.
87 },
88 "etag": "A String", # ETag of the resource.
89 "location": "A String", # Geographic location of the event as free-form text. Optional.
90 "recurringEventId": "A String", # For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
91 "gadget": { # A gadget that extends this event.
92 "preferences": { # Preferences.
93 "a_key": "A String", # The preference name and corresponding value.
94 },
95 "title": "A String", # The gadget's title.
96 "height": 42, # The gadget's height in pixels. The height must be an integer greater than 0. Optional.
97 "width": 42, # The gadget's width in pixels. The width must be an integer greater than 0. Optional.
98 "link": "A String", # The gadget's URL. The URL scheme must be HTTPS.
99 "type": "A String", # The gadget's type.
100 "display": "A String", # The gadget's display mode. Optional. Possible values are:
101 # - "icon" - The gadget displays next to the event's title in the calendar view.
102 # - "chip" - The gadget displays when the event is clicked.
103 "iconLink": "A String", # The gadget's icon URL. The URL scheme must be HTTPS.
104 },
105 "status": "A String", # Status of the event. Optional. Possible values are:
106 # - "confirmed" - The event is confirmed. This is the default status.
107 # - "tentative" - The event is tentatively confirmed.
108 # - "cancelled" - The event is cancelled (deleted). The list method returns cancelled events only on incremental sync (when syncToken or updatedMin are specified) or if the showDeleted flag is set to true. The get method always returns them.
109 # A cancelled status represents two different states depending on the event type:
110 # - Cancelled exceptions of an uncancelled recurring event indicate that this instance should no longer be presented to the user. Clients should store these events for the lifetime of the parent recurring event.
111 # Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
112 # - All other cancelled events represent deleted events. Clients should remove their locally synced copies. Such cancelled events will eventually disappear, so do not rely on them being available indefinitely.
113 # Deleted events are only guaranteed to have the id field populated. On the organizer's calendar, cancelled events continue to expose event details (summary, location, etc.) so that they can be restored (undeleted). Similarly, the events to which the user was invited and that they manually removed continue to provide details. However, incremental sync requests with showDeleted set to false will not return these details.
114 # If an event changes its organizer (for example via the move operation) and the original organizer is not on the attendee list, it will leave behind a cancelled event where only the id field is guaranteed to be populated.
115 "updated": "A String", # Last modification time of the event (as a RFC3339 timestamp). Read-only.
116 "description": "A String", # Description of the event. Optional.
117 "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.
118 # 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.
119 "extendedProperties": { # Extended properties of the event.
120 "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
121 "a_key": "A String", # The name of the shared property and the corresponding value.
122 },
123 "private": { # Properties that are private to the copy of the event that appears on this calendar.
124 "a_key": "A String", # The name of the private property and the corresponding value.
125 },
126 },
127 "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.
128 "sequence": 42, # Sequence number as per iCalendar.
129 "visibility": "default", # Visibility of the event. Optional. Possible values are:
130 # - "default" - Uses the default visibility for events on the calendar. This is the default value.
131 # - "public" - The event is public and event details are visible to all readers of the calendar.
132 # - "private" - The event is private and only event attendees may view event details.
133 # - "confidential" - The event is private. This value is provided for compatibility reasons.
134 "guestsCanModify": false, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
135 "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
136 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
137 "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.
138 "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.
139 },
140 "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.
141 "kind": "calendar#event", # Type of the resource ("calendar#event").
142 "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.
143 "anyoneCanAddSelf": false, # Whether anyone can invite themselves to the event (currently works for Google+ events only). Optional. The default is False.
144 "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.
145 "created": "A String", # Creation time of the event (as a RFC3339 timestamp). Read-only.
146 "reminders": { # Information about the event's reminders for the authenticated user.
147 "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.
148 {
149 "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).
150 # Required when adding a reminder.
151 "method": "A String", # The method used by this reminder. Possible values are:
152 # - "email" - Reminders are sent via email.
153 # - "sms" - Deprecated. Once this feature is shutdown, the API will no longer return reminders using this method. Any newly added SMS reminders will be ignored. See Google Calendar SMS notifications to be removed for more information.
154 # Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
155 # - "popup" - Reminders are sent via a UI popup.
156 # Required when adding a reminder.
157 },
158 ],
159 "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
160 },
161 "guestsCanSeeOtherGuests": true, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
162 "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. It uniquely identifies the instance within the recurring event series even if the instance was moved to a different time. Immutable.
163 "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
164 "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.
165 "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.
166 },
167 "guestsCanInviteOthers": true, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
168 "transparency": "opaque", # Whether the event blocks time on the calendar. Optional. Possible values are:
169 # - "opaque" - Default value. The event does block time on the calendar. This is equivalent to setting Show me as to Busy in the Calendar UI.
170 # - "transparent" - The event does not block time on the calendar. This is equivalent to setting Show me as to Available in the Calendar UI.
171 "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.
172 "conferenceData": { # The conference-related information, such as details of a Hangouts Meet conference. To create new conference details use the createRequest field. To persist your changes, remember to set the conferenceDataVersion request parameter to 1 for all event modification requests.
173 "entryPoints": [ # Information about individual conference entry points, such as URLs or phone numbers.
174 # All of them must belong to the same conference.
175 # Either conferenceSolution and at least one entryPoint, or createRequest is required.
176 {
177 "password": "A String", # The password to access the conference. The maximum length is 128 characters.
178 # When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
179 # Optional.
180 "meetingCode": "A String", # The meeting code to access the conference. The maximum length is 128 characters.
181 # When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
182 # Optional.
183 "pin": "A String", # The PIN to access the conference. The maximum length is 128 characters.
184 # When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
185 # Optional.
186 "uri": "A String", # The URI of the entry point. The maximum length is 1300 characters.
187 # Format:
188 # - for video, http: or https: schema is required.
189 # - for phone, tel: schema is required. The URI should include the entire dial sequence (e.g., tel:+12345678900,,,123456789;1234).
190 # - for sip, sip: schema is required, e.g., sip:12345678@myprovider.com.
191 # - for more, http: or https: schema is required.
192 "entryPointFeatures": [ # Features of the entry point, such as being toll or toll-free. One entry point can have multiple features. However, toll and toll-free cannot be both set on the same entry point.
193 "A String",
194 ],
195 "label": "A String", # The label for the URI. Visible to end users. Not localized. The maximum length is 512 characters.
196 # Examples:
197 # - for video: meet.google.com/aaa-bbbb-ccc
198 # - for phone: +1 123 268 2601
199 # - for sip: 12345678@altostrat.com
200 # - for more: should not be filled
201 # Optional.
202 "entryPointType": "A String", # The type of the conference entry point.
203 # Possible values are:
204 # - "video" - joining a conference over HTTP. A conference can have zero or one video entry point.
205 # - "phone" - joining a conference by dialing a phone number. A conference can have zero or more phone entry points.
206 # - "sip" - joining a conference over SIP. A conference can have zero or one sip entry point.
207 # - "more" - further conference joining instructions, for example additional phone numbers. A conference can have zero or one more entry point. A conference with only a more entry point is not a valid conference.
208 "regionCode": "A String", # The CLDR/ISO 3166 region code for the country associated with this phone access. Example: "SE" for Sweden.
209 # Calendar backend will populate this field only for EntryPointType.PHONE.
210 "passcode": "A String", # The passcode to access the conference. The maximum length is 128 characters.
211 # When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
212 "accessCode": "A String", # The access code to access the conference. The maximum length is 128 characters.
213 # When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
214 # Optional.
215 },
216 ],
217 "parameters": { # Additional properties related to a conference. An example would be a solution-specific setting for enabling video streaming.
218 "addOnParameters": { # Additional add-on specific data.
219 "parameters": {
220 "a_key": "A String",
221 },
222 },
223 },
224 "notes": "A String", # Additional notes (such as instructions from the domain administrator, legal notices) to display to the user. Can contain HTML. The maximum length is 2048 characters. Optional.
225 "conferenceId": "A String", # The ID of the conference.
226 # Can be used by developers to keep track of conferences, should not be displayed to users.
227 # Values for solution types:
228 # - "eventHangout": unset.
229 # - "eventNamedHangout": the name of the Hangout.
230 # - "hangoutsMeet": the 10-letter meeting code, for example "aaa-bbbb-ccc". Optional.
231 "createRequest": { # A request to generate a new conference and attach it to the event. The data is generated asynchronously. To see whether the data is present check the status field.
232 # Either conferenceSolution and at least one entryPoint, or createRequest is required.
233 "status": { # The status of the conference create request.
234 "statusCode": "A String", # The current status of the conference create request. Read-only.
235 # The possible values are:
236 # - "pending": the conference create request is still being processed.
237 # - "success": the conference create request succeeded, the entry points are populated.
238 # - "failure": the conference create request failed, there are no entry points.
239 },
240 "conferenceSolutionKey": { # The conference solution, such as Hangouts or Hangouts Meet.
241 "type": "A String", # The conference solution type.
242 # If a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.
243 # The possible values are:
244 # - "eventHangout" for Hangouts for consumers (http://hangouts.google.com)
245 # - "eventNamedHangout" for classic Hangouts for G Suite users (http://hangouts.google.com)
246 # - "hangoutsMeet" for Hangouts Meet (http://meet.google.com)
247 },
248 "requestId": "A String", # The client-generated unique ID for this request.
249 # Clients should regenerate this ID for every new request. If an ID provided is the same as for the previous request, the request is ignored.
250 },
251 "conferenceSolution": { # The conference solution, such as Hangouts or Hangouts Meet.
252 # Unset for a conference with a failed create request.
253 # Either conferenceSolution and at least one entryPoint, or createRequest is required.
254 "iconUri": "A String", # The user-visible icon for this solution.
255 "name": "A String", # The user-visible name of this solution. Not localized.
256 "key": { # The key which can uniquely identify the conference solution for this event.
257 "type": "A String", # The conference solution type.
258 # If a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.
259 # The possible values are:
260 # - "eventHangout" for Hangouts for consumers (http://hangouts.google.com)
261 # - "eventNamedHangout" for classic Hangouts for G Suite users (http://hangouts.google.com)
262 # - "hangoutsMeet" for Hangouts Meet (http://meet.google.com)
263 },
264 },
265 "signature": "A String", # The signature of the conference data.
266 # Generated on server side. Must be preserved while copying the conference data between events, otherwise the conference data will not be copied.
267 # Unset for a conference with a failed create request.
268 # Optional for a conference with a pending create request.
269 },
270 },
271 ],
272 "updated": "A String", # Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
273 "summary": "A String", # Title of the calendar. Read-only.
274 "etag": "A String", # ETag of the collection.
275 "timeZone": "A String", # The time zone of the calendar. Read-only.
276 "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.
277 "accessRole": "A String", # The user's access role for this calendar. Read-only. Possible values are:
278 # - "none" - The user has no access.
279 # - "freeBusyReader" - The user has read access to free/busy information.
280 # - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
281 # - "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.
282 # - "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.
283 }