caldav

Make exception event from original recurring event?

爷,独闯天下 提交于 2019-12-18 04:23:22
问题 I found that Events.CONTENT_EXCEPTION_URI (here) used for make recurring event. It's hardly to find document or code example from internet. So I try many ways 1 Insert as SyncAdapter ContentValues values = new ContentValues(); values.put(Events.ORIGINAL_INSTANCE_TIME, CaldavGlobalVar.getCurrentTime_()); values.put(Events.SELF_ATTENDEE_STATUS, status); if(!username.equals("")){ values.put(Events.ORGANIZER, username); } if(event.getSummarry()!=null){ values.put(Events.TITLE, event.getSummarry()

Getting calendar-data via multiget REPORT method in php

无人久伴 提交于 2019-12-13 22:07:31
问题 I try to get multiple event in caldav using a multiget request as explain here: http://sabre.io/dav/building-a-caldav-client or here: Reading Apple/iCloud calendar data using PHP/CalDAV It's suppose to be as simple as passing: <?xml version="1.0" encoding="UTF-8"?> <B:calendar-multiget xmlns:B="urn:ietf:params:xml:ns:caldav"> <A:prop xmlns:A="DAV:"> <B:calendar-data/> </A:prop> <A:href xmlns:A="DAV:">/calendars/__uids__/DE6BFE56-B3DC-4C60-A9C7-ED05A45AAC92/calendar/00ECD3D1-72D0-4F56-9011

403 CalDAV error: valid-calendar-object-resource

让人想犯罪 __ 提交于 2019-12-13 07:28:01
问题 I'm attempting to create a new event in an iCloud calendar. I'm getting a valid-calendar-object-resource error, which according to the spec says my PUT request doesn't meet Section 4.1 in the spec. However, this is the body of the request, which, as far as I can tell, does meet all the requirements in 4.1: BEGIN:VCALENDAR VERSION:2.0 PRODID:-//sebbo.net//ical-generator//EN BEGIN:VEVENT UID:3xq8@the-calendar-api.herokuapp.com SEQUENCE:0 DTSTAMP:20160113T023753Z DTSTART:20160113T033753Z DTEND

iCloud Calendar empty response

爱⌒轻易说出口 提交于 2019-12-12 05:38:24
问题 I have sent below request to iCloud calendar service to get all calendar list. But response is always empty. Can anyone help me? Request: GET /10232836851/calendars/F41F7478-4345-4A4A-8CD5-548122EF2C22/ HTTP/1.1 HOST: pxx-caldav.icloud.com user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXX== depth: 1 content-type: text/xml Response Header: Server: AppleHttpServer/a6f3179 Date: Fri

Davical Sync-Token web request

心已入冬 提交于 2019-12-12 03:19:44
问题 I am trying not to re-invent the wheel here... I have found some nice documentation on CalDav sync implementation there According to its website, DaviCal is rfc6578-compliant since v. 0.9.8 (see here). I therefore first send my request to get the sync token as follows: PROPFIND http://my_cal_srv/user/calendar_path HTTP/1.1 Content-Type: application/xml; charset="utf-8" <?xml version="1.0" encoding="utf-8" ?> <d:propfind xmlns:d='DAV:'> <d:prop> <d:displayname /> <d:sync-token /> </d:prop> </d

iCloud calendar: Getting unauthorized error from CalDav server

倖福魔咒の 提交于 2019-12-12 01:43:21
问题 I'm trying to PUT an event on iCloud calendar using CalDav. After several proper requests and responses and getting the user principal and calendars, when i try to PUT an event, the server returns Unauthorized error. Here's the network log from fiddler: Request: OPTIONS https://p49-caldav.icloud.com/ HTTP/1.1 Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Python library to access a CalDAV server

…衆ロ難τιáo~ 提交于 2019-12-11 04:03:17
问题 I run ownCloud on my webspace for a shared calendar. Now I'm looking for a suitable python library to get read only access to the calendar. I want to put some information of the calendar on an intranet website. I have tried http://trac.calendarserver.org/wiki/CalDAVClientLibrary but it always returns a NotImplementedError with the query command, so my guess is that the query command doesn't work well with the given library. What library could I use instead? 回答1: I recommend the library,

CalDav Client for iCloud: MKCOL fails with 412 precondition failed

a 夏天 提交于 2019-12-11 02:47:50
问题 I need help. I implemented a CalDav Client on our System and it worked like a charm. Now I have some problems with creating new calendars on iCloud. Maybe some of you know how I can fix this. Currently I get a 412 Error. Headers: "Depth: 1" "Content-Type: application/xml; charset=UTF-8" "User-Agent: DAVKit/4.0.1 (730); CalendarStore/4.0.1 (973); iCal/4.0.1 (1374); Mac OS X/10.6.2 (10C540)"` Request: `MKCOL` Body: <D:mkcol xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> <D:set> <D:prop

Want to connect to iCloud caldav server and add an event, preferably from PHP

谁都会走 提交于 2019-12-08 04:52:50
问题 I am trying to get a server script back end to connect to an iCloud calendar and add an event to a certain calendar. I have found a scrip that can connect to the iCloud server and scrape all the right info for URL's needed etc but can find no example or documentation on adding or at least syncing an event from a web based script, ideally php to an iCloud server caldav calendar. This is a script that can connect and get the necessary URLS http://icloud.niftyside.com/ But am struggling after

Adding events to Baikal CalDAV server using PHP

梦想的初衷 提交于 2019-12-07 12:06:47
问题 I want to push events to a CalDAV calendar that is installed on my webhost. I am using the Baikal CalDAV server. This is my PHP: <?php $uid = "test-12345"; // setting this to an existing uid updates event, a new uid adds event $url = "http://infobo9.myhostpoint.ch/dav/cal.php/principals/bookify"; //http://mail.domain.com/calendars/DOMAIN/USER/Calendar/'.$uid.'.ics' $userpwd = "bookify:test"; $description = 'My event description here'; $summary = 'My event title 1'; $tstart = '20141127T000000Z