| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, 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 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, 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.calendars.html">calendars</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#clear">clear(calendarId)</a></code></p> |
| 79 |
<p class="firstline">Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#close">close()</a></code></p> |
| 82 |
<p class="firstline">Close httplib2 connections.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#delete">delete(calendarId)</a></code></p> |
| 85 |
<p class="firstline">Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#get">get(calendarId)</a></code></p> |
| 88 |
<p class="firstline">Returns metadata for a calendar.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#insert">insert(body=None)</a></code></p> |
| 91 |
<p class="firstline">Creates a secondary calendar.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#patch">patch(calendarId, body=None)</a></code></p> |
| 94 |
<p class="firstline">Updates metadata for a calendar. This method supports patch semantics.</p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#update">update(calendarId, body=None)</a></code></p> |
| 97 |
<p class="firstline">Updates metadata for a calendar.</p> |
| 98 |
<h3>Method Details</h3> |
| 99 |
<div class="method"> |
| 100 |
<code class="details" id="clear">clear(calendarId)</code> |
| 101 |
<pre>Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account. |
| 102 |
|
| 103 |
Args: |
| 104 |
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) |
| 105 |
</pre> |
| 106 |
</div> |
| 107 |
|
| 108 |
<div class="method"> |
| 109 |
<code class="details" id="close">close()</code> |
| 110 |
<pre>Close httplib2 connections.</pre> |
| 111 |
</div> |
| 112 |
|
| 113 |
<div class="method"> |
| 114 |
<code class="details" id="delete">delete(calendarId)</code> |
| 115 |
<pre>Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars. |
| 116 |
|
| 117 |
Args: |
| 118 |
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) |
| 119 |
</pre> |
| 120 |
</div> |
| 121 |
|
| 122 |
<div class="method"> |
| 123 |
<code class="details" id="get">get(calendarId)</code> |
| 124 |
<pre>Returns metadata for a calendar. |
| 125 |
|
| 126 |
Args: |
| 127 |
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) |
| 128 |
|
| 129 |
Returns: |
| 130 |
An object of the form: |
| 131 |
|
| 132 |
{ |
| 133 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 134 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 135 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 136 |
# The possible values are: |
| 137 |
# - "eventHangout" |
| 138 |
# - "eventNamedHangout" |
| 139 |
# - "hangoutsMeet" Optional. |
| 140 |
"A String", |
| 141 |
], |
| 142 |
}, |
| 143 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 144 |
"description": "A String", # Description of the calendar. Optional. |
| 145 |
"etag": "A String", # ETag of the resource. |
| 146 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 147 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 148 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 149 |
"summary": "A String", # Title of the calendar. |
| 150 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 151 |
}</pre> |
| 152 |
</div> |
| 153 |
|
| 154 |
<div class="method"> |
| 155 |
<code class="details" id="insert">insert(body=None)</code> |
| 156 |
<pre>Creates a secondary calendar. |
| 157 |
The authenticated user for the request is made the data owner of the new calendar. |
| 158 |
|
| 159 |
Note: We recommend to authenticate as the intended data owner of the calendar. You can use domain-wide delegation of authority to allow applications to act on behalf of a specific user. Don't use a service account for authentication. If you use a service account for authentication, the service account is the data owner, which can lead to unexpected behavior. For example, if a service account is the data owner, data ownership cannot be transferred. |
| 160 |
|
| 161 |
Args: |
| 162 |
body: object, The request body. |
| 163 |
The object takes the form of: |
| 164 |
|
| 165 |
{ |
| 166 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 167 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 168 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 169 |
# The possible values are: |
| 170 |
# - "eventHangout" |
| 171 |
# - "eventNamedHangout" |
| 172 |
# - "hangoutsMeet" Optional. |
| 173 |
"A String", |
| 174 |
], |
| 175 |
}, |
| 176 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 177 |
"description": "A String", # Description of the calendar. Optional. |
| 178 |
"etag": "A String", # ETag of the resource. |
| 179 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 180 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 181 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 182 |
"summary": "A String", # Title of the calendar. |
| 183 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 184 |
} |
| 185 |
|
| 186 |
|
| 187 |
Returns: |
| 188 |
An object of the form: |
| 189 |
|
| 190 |
{ |
| 191 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 192 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 193 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 194 |
# The possible values are: |
| 195 |
# - "eventHangout" |
| 196 |
# - "eventNamedHangout" |
| 197 |
# - "hangoutsMeet" Optional. |
| 198 |
"A String", |
| 199 |
], |
| 200 |
}, |
| 201 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 202 |
"description": "A String", # Description of the calendar. Optional. |
| 203 |
"etag": "A String", # ETag of the resource. |
| 204 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 205 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 206 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 207 |
"summary": "A String", # Title of the calendar. |
| 208 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 209 |
}</pre> |
| 210 |
</div> |
| 211 |
|
| 212 |
<div class="method"> |
| 213 |
<code class="details" id="patch">patch(calendarId, body=None)</code> |
| 214 |
<pre>Updates metadata for a calendar. This method supports patch semantics. |
| 215 |
|
| 216 |
Args: |
| 217 |
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) |
| 218 |
body: object, The request body. |
| 219 |
The object takes the form of: |
| 220 |
|
| 221 |
{ |
| 222 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 223 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 224 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 225 |
# The possible values are: |
| 226 |
# - "eventHangout" |
| 227 |
# - "eventNamedHangout" |
| 228 |
# - "hangoutsMeet" Optional. |
| 229 |
"A String", |
| 230 |
], |
| 231 |
}, |
| 232 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 233 |
"description": "A String", # Description of the calendar. Optional. |
| 234 |
"etag": "A String", # ETag of the resource. |
| 235 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 236 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 237 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 238 |
"summary": "A String", # Title of the calendar. |
| 239 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 240 |
} |
| 241 |
|
| 242 |
|
| 243 |
Returns: |
| 244 |
An object of the form: |
| 245 |
|
| 246 |
{ |
| 247 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 248 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 249 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 250 |
# The possible values are: |
| 251 |
# - "eventHangout" |
| 252 |
# - "eventNamedHangout" |
| 253 |
# - "hangoutsMeet" Optional. |
| 254 |
"A String", |
| 255 |
], |
| 256 |
}, |
| 257 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 258 |
"description": "A String", # Description of the calendar. Optional. |
| 259 |
"etag": "A String", # ETag of the resource. |
| 260 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 261 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 262 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 263 |
"summary": "A String", # Title of the calendar. |
| 264 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 265 |
}</pre> |
| 266 |
</div> |
| 267 |
|
| 268 |
<div class="method"> |
| 269 |
<code class="details" id="update">update(calendarId, body=None)</code> |
| 270 |
<pre>Updates metadata for a calendar. |
| 271 |
|
| 272 |
Args: |
| 273 |
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) |
| 274 |
body: object, The request body. |
| 275 |
The object takes the form of: |
| 276 |
|
| 277 |
{ |
| 278 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 279 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 280 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 281 |
# The possible values are: |
| 282 |
# - "eventHangout" |
| 283 |
# - "eventNamedHangout" |
| 284 |
# - "hangoutsMeet" Optional. |
| 285 |
"A String", |
| 286 |
], |
| 287 |
}, |
| 288 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 289 |
"description": "A String", # Description of the calendar. Optional. |
| 290 |
"etag": "A String", # ETag of the resource. |
| 291 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 292 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 293 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 294 |
"summary": "A String", # Title of the calendar. |
| 295 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 296 |
} |
| 297 |
|
| 298 |
|
| 299 |
Returns: |
| 300 |
An object of the form: |
| 301 |
|
| 302 |
{ |
| 303 |
"autoAcceptInvitations": True or False, # Whether this calendar automatically accepts invitations. Only valid for resource calendars. |
| 304 |
"conferenceProperties": { # Conferencing properties for this calendar, for example what types of conferences are allowed. |
| 305 |
"allowedConferenceSolutionTypes": [ # The types of conference solutions that are supported for this calendar. |
| 306 |
# The possible values are: |
| 307 |
# - "eventHangout" |
| 308 |
# - "eventNamedHangout" |
| 309 |
# - "hangoutsMeet" Optional. |
| 310 |
"A String", |
| 311 |
], |
| 312 |
}, |
| 313 |
"dataOwner": "A String", # The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
| 314 |
"description": "A String", # Description of the calendar. Optional. |
| 315 |
"etag": "A String", # ETag of the resource. |
| 316 |
"id": "A String", # Identifier of the calendar. To retrieve IDs call the calendarList.list() method. |
| 317 |
"kind": "calendar#calendar", # Type of the resource ("calendar#calendar"). |
| 318 |
"location": "A String", # Geographic location of the calendar as free-form text. Optional. |
| 319 |
"summary": "A String", # Title of the calendar. |
| 320 |
"timeZone": "A String", # The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional. |
| 321 |
}</pre> |
| 322 |
</div> |
| 323 |
|
| 324 |
</body></html> |