Priyank Kotiyal
Priyank Kotiyal

Reputation: 311

How to identify which calendar is my default calendar at iCloud.com

<d:propfind xmlns:d='DAV:' xmlns:cs='{0}' xmlns:c='urn:ietf:params:xml:ns:caldav'>
                                              <d:prop>
                                                 <d:resourcetype />
                                                 <d:displayname />
                                                 <cs:getctag />
                                                 <c:supported-calendar-component-set />
                                                 <d:current-user-privilege-set/>
                                                <d:calendar-access />
                                                <c:schedule-default-calendar-URL />
                                              </d:prop>
                                        </d:propfind>

Above is my request to fetch all calendars. How to distinguish between default calendar and other calendars after reading response. For every calendar following is common in response-:

<propstat><prop><calendar-access /><schedule-default-calendar-URL xmlns="urn:ietf:params:xml:ns:caldav" /></prop><status>HTTP/1.1 404 Not Found</status></propstat>

Upvotes: 0

Views: 270

Answers (1)

hnh
hnh

Reputation: 14795

According to RFC6638 4.3 you should get a value for the

schedule-default-calendar-URL

property on the Inbox collection. And, well, that is the default calendar ;-)

Upvotes: 1

Related Questions