API to retrieve iCloud calendar data?

Hi all,


I need to create a webapplication (based on ruby on rails 5), which displays the icloud-calendar events of a user. I managed to achieve this with CalDAV-calendar sharing. However this is not what managent wants.


Therefore I want to achieve this with an oAuth2 workflow. I did exactly this with the google-calendar and I want the same behaviour with the icloud-calendar:


- User clicks on a button "connect iCloud Calendar" in my webapplication in the browser.

- User gets redirected to apple site to login with his credentials.

- Apple gives my application a token and a refresh token, which I can use to read user-calendar-events.


Since I am completly new to the apple-world, I have some questions about this:


- Is this described workflow somehow possible with the iCloud calendar?

- If so, what apple-api or apple-tools do I have to use?

- Is it possible to develop an iCloud-application without having a developer-account at apple? (e.g a sandbox for testing - not for production use) I ask this, because management probably wants to see something before paying the developer-fee.


With best regards

Michael

Hi Michael,

Apple doesn't provide O-Auth for authentication for caldav, Only thing you can do is to validate user by using apple id and app-specific password. You have to make propfind request to caldav server which will give you token that will be used for further operations. You can't do things that are not supported by third party app.

Thanks!

API to retrieve iCloud calendar data?
 
 
Q