Skip to content

Instantly share code, notes, and snippets.

@felixkiss
Last active February 26, 2017 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixkiss/07376ece4c4640228c3e1fbb8ae4baf6 to your computer and use it in GitHub Desktop.
Save felixkiss/07376ece4c4640228c3e1fbb8ae4baf6 to your computer and use it in GitHub Desktop.
PROPFIND /caldav/calendars/felixkiss/c-felixkiss/ HTTP/1.1
Host: api.ultimed.dev
Accept: */*
Brief: t
Authorization: Basic ZmVsaXhraXNzOnBhc3N3b3J0
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: text/xml
Content-Length: 145
Depth: 1
Connection: keep-alive
User-Agent: Mac+OS+X/10.12.3 (16D32) CalendarAgent/384
Prefer: return=minimal
<?xml version="1.0" encoding="UTF-8"?>
<A:propfind xmlns:A="DAV:">
<A:prop>
<A:getcontenttype/>
<A:getetag/>
</A:prop>
</A:propfind>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/">
<d:response>
<d:href>/caldav/calendars/felixkiss/c-felixkiss/</d:href>
<d:propstat>
<d:prop />
<d:status>HTTP/1.1 418 I'm a teapot</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/caldav/calendars/felixkiss/c-felixkiss/e-1.ics</d:href>
<d:propstat>
<d:prop>
<d:getcontenttype>text/calendar; charset=utf-8</d:getcontenttype>
<d:getetag>&quot;e-1-20170226T042946Z&quot;</d:getetag>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/caldav/calendars/felixkiss/c-felixkiss/e-2.ics</d:href>
<d:propstat>
<d:prop>
<d:getcontenttype>text/calendar; charset=utf-8</d:getcontenttype>
<d:getetag>&quot;e-2-20170226T043004Z&quot;</d:getetag>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
REPORT /caldav/calendars/felixkiss/c-felixkiss/ HTTP/1.1
Host: api.ultimed.dev
Content-Type: text/xml
Authorization: Basic ZmVsaXhraXNzOnBhc3N3b3J0
Connection: keep-alive
Accept: */*
User-Agent: Mac+OS+X/10.12.3 (16D32) CalendarAgent/384
Content-Length: 486
Accept-Language: en-us
Accept-Encoding: gzip, deflate
<?xml version="1.0" encoding="UTF-8"?>
<B:calendar-multiget xmlns:B="urn:ietf:params:xml:ns:caldav">
<A:prop xmlns:A="DAV:">
<A:getetag/>
<B:calendar-data/>
<C:created-by xmlns:C="http://calendarserver.org/ns/"/>
<C:updated-by xmlns:C="http://calendarserver.org/ns/"/>
</A:prop>
<A:href xmlns:A="DAV:">/caldav/calendars/felixkiss/c-felixkiss/e-2.ics</A:href>
<A:href xmlns:A="DAV:">/caldav/calendars/felixkiss/c-felixkiss/e-1.ics</A:href>
</B:calendar-multiget>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/">
<d:response>
<d:href>/caldav/calendars/felixkiss/c-felixkiss/e-1.ics</d:href>
<d:propstat>
<d:prop>
<d:getetag>&quot;e-1-20170226T042946Z&quot;</d:getetag>
<cal:calendar-data>BEGIN:VCALENDAR
VERSION:2.0 PRODID:-//Sabre//Sabre VObject 4.1.2//EN
CALSCALE:GREGORIAN BEGIN:VEVENT
DTSTAMP:20170226T060736Z CREATED:20170226T042946Z
UID:e-1 DTSTART:20170226T163000Z
DTEND:20170226T184500Z SUMMARY:Test
DESCRIPTION:felix URL;VALUE=URI:https://api.ultimed.dev/appointments/1
END:VEVENT END:VCALENDAR</cal:calendar-data>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<cs:created-by />
<cs:updated-by />
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/caldav/calendars/felixkiss/c-felixkiss/e-2.ics</d:href>
<d:propstat>
<d:prop>
<d:getetag>&quot;e-2-20170226T043004Z&quot;</d:getetag>
<cal:calendar-data>BEGIN:VCALENDAR
VERSION:2.0 PRODID:-//Sabre//Sabre VObject 4.1.2//EN
CALSCALE:GREGORIAN BEGIN:VEVENT
DTSTAMP:20170226T060736Z CREATED:20170226T043004Z
UID:e-2 DTSTART:20170226T130000Z
DTEND:20170226T134500Z SUMMARY:Test 2
DESCRIPTION:felix URL;VALUE=URI:https://api.ultimed.dev/appointments/2
END:VEVENT END:VCALENDAR</cal:calendar-data>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<cs:created-by />
<cs:updated-by />
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
</d:multistatus>
PROPFIND /caldav/calendars/felixkiss/ HTTP/1.1
Host: api.ultimed.dev
Accept: */*
Brief: t
Authorization: Basic ZmVsaXhraXNzOnBhc3N3b3J0
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: text/xml
Content-Length: 2217
Depth: 1
Connection: keep-alive
User-Agent: Mac+OS+X/10.12.3 (16D32) CalendarAgent/384
Prefer: return=minimal
<?xml version="1.0" encoding="UTF-8"?>
<A:propfind xmlns:A="DAV:">
<A:prop>
<A:add-member/>
<C:allowed-sharing-modes xmlns:C="http://calendarserver.org/ns/"/>
<D:autoprovisioned xmlns:D="http://apple.com/ns/ical/"/>
<E:bulk-requests xmlns:E="http://me.com/_namespace/"/>
<B:calendar-alarm xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<D:calendar-color xmlns:D="http://apple.com/ns/ical/"/>
<B:calendar-description xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<B:calendar-free-busy-set xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<D:calendar-order xmlns:D="http://apple.com/ns/ical/"/>
<B:calendar-timezone xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<A:current-user-privilege-set/>
<B:default-alarm-vevent-date xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<B:default-alarm-vevent-datetime xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<A:displayname/>
<C:getctag xmlns:C="http://calendarserver.org/ns/"/>
<C:invite xmlns:C="http://calendarserver.org/ns/"/>
<D:language-code xmlns:D="http://apple.com/ns/ical/"/>
<D:location-code xmlns:D="http://apple.com/ns/ical/"/>
<A:owner/>
<C:pre-publish-url xmlns:C="http://calendarserver.org/ns/"/>
<C:publish-url xmlns:C="http://calendarserver.org/ns/"/>
<C:push-transports xmlns:C="http://calendarserver.org/ns/"/>
<C:pushkey xmlns:C="http://calendarserver.org/ns/"/>
<A:quota-available-bytes/>
<A:quota-used-bytes/>
<D:refreshrate xmlns:D="http://apple.com/ns/ical/"/>
<A:resource-id/>
<A:resourcetype/>
<B:schedule-calendar-transp xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<B:schedule-default-calendar-URL xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<C:source xmlns:C="http://calendarserver.org/ns/"/>
<C:subscribed-strip-alarms xmlns:C="http://calendarserver.org/ns/"/>
<C:subscribed-strip-attachments xmlns:C="http://calendarserver.org/ns/"/>
<C:subscribed-strip-todos xmlns:C="http://calendarserver.org/ns/"/>
<B:supported-calendar-component-set xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<B:supported-calendar-component-sets xmlns:B="urn:ietf:params:xml:ns:caldav"/>
<A:supported-report-set/>
<A:sync-token/>
</A:prop>
</A:propfind>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/">
<d:response>
<d:href>/caldav/calendars/felixkiss/</d:href>
<d:propstat>
<d:prop>
<d:current-user-privilege-set>
<d:privilege>
<d:write />
</d:privilege>
<d:privilege>
<d:write-properties />
</d:privilege>
<d:privilege>
<d:write-content />
</d:privilege>
<d:privilege>
<d:unlock />
</d:privilege>
<d:privilege>
<d:bind />
</d:privilege>
<d:privilege>
<d:unbind />
</d:privilege>
<d:privilege>
<d:write-acl />
</d:privilege>
<d:privilege>
<d:read />
</d:privilege>
<d:privilege>
<d:read-acl />
</d:privilege>
<d:privilege>
<d:read-current-user-privilege-set />
</d:privilege>
</d:current-user-privilege-set>
<cal:default-alarm-vevent-date>BEGIN:VALARM&#13;
X-WR-ALARMUID:57CF1DBD-8FFC-41F9-9136-EA2B17035263&#13;
UID:57CF1DBD-8FFC-41F9-9136-EA2B17035263&#13;
TRIGGER:-PT15H&#13;
ATTACH;VALUE=URI:Basso&#13;
ACTION:AUDIO&#13;
END:VALARM&#13;</cal:default-alarm-vevent-date>
<cal:default-alarm-vevent-datetime>BEGIN:VALARM&#13;
X-WR-ALARMUID:D4F4AE2B-A2A4-4113-A02E-99821E9D4C30&#13;
UID:D4F4AE2B-A2A4-4113-A02E-99821E9D4C30&#13;
TRIGGER;VALUE=DATE-TIME:19760401T005545Z&#13;
ACTION:NONE&#13;
END:VALARM&#13;</cal:default-alarm-vevent-datetime>
<d:owner>
<d:href>/caldav/principals/felixkiss/</d:href>
</d:owner>
<d:resourcetype>
<d:collection />
</d:resourcetype>
<d:supported-report-set>
<d:supported-report>
<d:report>
<d:expand-property />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-match />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-property-search />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-search-property-set />
</d:report>
</d:supported-report>
</d:supported-report-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/caldav/calendars/felixkiss/c-felixkiss/</d:href>
<d:propstat>
<d:prop>
<d:current-user-privilege-set>
<d:privilege>
<cal:read-free-busy />
</d:privilege>
<d:privilege>
<d:read />
</d:privilege>
<d:privilege>
<d:read-acl />
</d:privilege>
<d:privilege>
<d:read-current-user-privilege-set />
</d:privilege>
</d:current-user-privilege-set>
<d:displayname>Felix Kiss</d:displayname>
<d:owner>
<d:href>/caldav/principals/felixkiss/</d:href>
</d:owner>
<d:resourcetype>
<d:collection />
<cal:calendar />
</d:resourcetype>
<cal:supported-calendar-component-set>VEVENT</cal:supported-calendar-component-set>
<d:supported-report-set>
<d:supported-report>
<d:report>
<cal:calendar-multiget />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<cal:calendar-query />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<cal:free-busy-query />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:expand-property />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-match />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-property-search />
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-search-property-set />
</d:report>
</d:supported-report>
</d:supported-report-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment