2

I am implementing a new functionality to manage events in ICLOUD calendar(includes my own calendar as well as other ICLOUD users calendar).I successfully implemented the functionality with CALDAV, but here I wanted to know is there any better approach to do the same. Below mentioned steps will explain how I achieved ADD/EDIT/DELETE functionality with CALDAV in other ICLOUD users calendar.

otheruser@gmail.com :icloud account of a user who shares his calendar with me myaccount@gmail.com: referring to my icloud account

  1. otheruser@gmail.com will share his/her calendar with myaccount@gmail.com enter image description here

    Once i accept the request this calendar will be listed in myaccount@gmail.com

  2. Using below CALDAV api I will get all calendars listed in my account enter image description here

  3. From the response of above request I will get each calendar url and perform add/edit/delete action accordingly.

Note:Here one drawback is I need to ask each user of my application to share(but sharing it private not as public) his personal calendar with my account.

I am using c# as it is a .net application.

Any help would be appreciated.Thanks in advance.

samiaj
  • 421
  • 1
  • 5
  • 15

1 Answers1

1

The question is quite broad so it is hard to really figure out what you are looking for.

In any case one thing about your PROPFIND request: You should also ask for the DAV:resourcetype property (defined in https://www.rfc-editor.org/rfc/rfc4918#section-15.9) and, in your response, only consider the ones that have a calendar value in their resource type (see https://www.rfc-editor.org/rfc/rfc4791#section-4.2).

Community
  • 1
  • 1
Arnaud Quillaud
  • 4,420
  • 1
  • 12
  • 8
  • Thanks for the reply.For your clarity, what I am trying to understand is ,Am I using the correct approach to update another person calendar?If not what will be the best way to do it. – samiaj Mar 29 '18 at 16:34
  • Yes. Use of CalDAV is the recommended approach for iCloud. – Arnaud Quillaud Apr 03 '18 at 13:15
  • Thanks for your reply. Is there any way we can sync calendar with end user app specific password? – samiaj Apr 04 '18 at 11:47
  • In my case, somehow every request to create a new event results `400 Bad Request`. Here is the detail of it: https://stackoverflow.com/questions/50720196/creating-new-event-to-icloud-apple-calendar-always-results-400-bad-request I'd appreciate if you have any example or reference that I can see. – Yusril Maulidan Raji Jun 06 '18 at 13:52