Retrieve information about a list of calendar events
Added by IBM contributorAnna G O'Neal | Edited by Claudia R Elbourn on June 26, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Get information about a list of events in the calendars of users based on the email addresses of those users.

Table 1. API details

Method Resource address
REPORT REPORT /calendar/r/dav/calendar/<user_email><calendar_guid>/, where <user_email> is email address of the user, and <calendar_guid> is the globally unique identifier of the calendar.

The following code provides a sample implementation of the API. For details about using the API in your own development environment, see the Internet Engineering Task Force (IETF) Request for Comments (RFC) resources at the end of this topic.

Sample request


REPORT https://mail-usw.lotuslive.com/calendar/r/dav/calendar/bgs_demo07%40try.lotuslive.com/8a869f8e35dc722f01360a2b61244352/ HTTP/1.1

Host: mail-usw.lotuslive.com

User-Agent: iOS/5.0.1 (9A405) dataaccessd/1.0

Content-Length: 388

Accept: */*

Content-Type: text/xml

Accept-Encoding: gzip, deflate

Accept-Language: en-us

Cookie: JSESSIONID=0CDD38AF867A74E6FE1D06CEFC058481

Authorization: Basic <base64 encoding of user_email:password>

Connection: keep-alive

Proxy-Connection: keep-alive



<?xml version="1.0" encoding="UTF-8"?>

<C:calendar-multiget xmlns:C="urn:ietf:params:xml:ns:caldav">

<A:prop xmlns:A="DAV:">

<A:getetag/>

<C:calendar-data/>

<C:schedule-tag/>

</A:prop>

<A:href xmlns:A="DAV:">/calendar/r/dav/calendar/bgs_demo07%40try.lotuslive.com/8a869f8e35dc722f01360a2b61244352

/0DDC79F9-4134-4F41-925D-25D10EEE7AAE.ics</A:href>

</C:calendar-multiget>


Sample response


HTTP/1.1 207 Multi-Status

Server: nginx

Content-Type: application/xml;charset=utf-8

Cache-Control: private, max-age=0

Expires: Thu May 03 07:52:32 GMT 2012

DAV: 1, access-control, calendar-access, calendar-schedule, calendar-proxy, calendar-auto-schedule

Date: Thu, 03 May 2012 07:52:33 GMT

Content-Length: 1188

Connection: close

Set-Cookie: JSESSIONID=0CDD38AF867A74E6FE1D06CEFC058481; Path=/calendar; Secure



<D:multistatus xmlns:CS="http://calendarserver.org/ns/" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:">

<D:response>

<D:href>/calendar/r/dav/calendar/bgs_demo07@try.lotuslive.com/8a869f8e35dc722f01360a2b61244352/0DDC79F9-4134-4F41-925D-

25D10EEE7AAE.ics</D:href>

<D:propstat>

<D:prop>

<D:getetag>1336031324000</D:getetag>

<C:calendar-data xmlns:ns4="http://apple.com/ns/ical/">BEGIN:VCALENDAR

PRODID:-//IBM Corp//LotusLive iNotes//EN

VERSION:2.0

CALSCALE:GREGORIAN

BEGIN:VEVENT

CREATED:20120503T074827Z

DTSTAMP:20120503T074843Z

LAST-MODIFIED:20120503T074827Z

SEQUENCE:0

SUMMARY:Test event

TRANSP:OPAQUE

UID:0DDC79F9-4134-4F41-925D-25D10EEE7AAE

ORGANIZER:mailto:bgs_demo07@try.lotuslive.com

DTSTART:20120503T080000Z

DTEND:20120503T090000Z

END:VEVENT

END:VCALENDAR

</C:calendar-data>

</D:prop>

<D:status>HTTP/1.1 200 OK</D:status>

</D:propstat>

<D:propstat>

<D:prop>

<C:schedule-tag xmlns:A="DAV:"/>

</D:prop>

<D:status>HTTP/1.1 404 Not Found</D:status>

</D:propstat>

</D:response>

</D:multistatus>

 

Related Resources

Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol

Calendaring Extensions to WebDAV (CalDAV)