Zimbra REST API Reference:Get Calendar: Difference between revisions
Line 24: | Line 24: | ||
<li><code>fmt</code>. Optional. The response format. Defaults to <code>ics</code></li> | <li><code>fmt</code>. Optional. The response format. Defaults to <code>ics</code></li> | ||
<li><code>view</code>. Optional. Designates the display when using the <code>html</code> format. Options include: day, week, workWeek, month. | <li><code>view</code>. Optional. Designates the display when using the <code>html</code> format. Options include: day, week, workWeek, month. | ||
<li><code>date</code>. Optional. Designates the date to display when using the <code>html</code> format. Format is date=[yyyymmdd]. For example, 2/15/2010 is <code>date=20100215</code>. | |||
<li><code>query</code>. Optional. A query keyword.</li> | <li><code>query</code>. Optional. A query keyword.</li> | ||
</ul> | </ul> |
Revision as of 21:10, 16 January 2010
<< Back to Zimbra REST API Reference
REST API Method: Get Calendar
Gets the calendar.
URL
http://localhost:7070/home/john.doe/calendar?{params}
Formats
ics,json,xml,rss,atom,html
(Go to Response Formats)
Requires Authentication
true
(Go to Authentication)
Parameters
fmt
. Optional. The response format. Defaults toics
view
. Optional. Designates the display when using thehtml
format. Options include: day, week, workWeek, month.date
. Optional. Designates the date to display when using thehtml
format. Format is date=[yyyymmdd]. For example, 2/15/2010 isdate=20100215
.query
. Optional. A query keyword.
Usage Examples
Download the calendar as a iCalendar (ICS) file:
http://localhost:7070/home/john.doe/calendar
http://localhost:7070/home/john.doe/calendar?fmt=ics
Retrieve the calendar in XML format:
http://localhost:7070/home/john.doe/calendar?fmt=xml
Retrieve the calendar in JSON format:
http://localhost:7070/home/john.doe/calendar?fmt=json
Retrieve the calendar HTML "month" view:
http://localhost:7070/home/john.doe/calendar.html
http://localhost:7070/home/john.doe/calendar?fmt=html
Retrieve the calendar HTML "workWeek" view:
http://localhost:7070/home/john.doe/calendar?fmt=html&view=workWeek