none
Looking for Caldav/iCloud Example

    Question

  • I'm trying to develop a VS/VB app to feed iCloud calendar info into my home automation system (HomeSeer).  I've been looking for a week or so and gone down many ratholes.  Does anyone an example which they'd be willing to share?
    • Moved by Neda Zhang Wednesday, November 02, 2016 9:57 AM
    Wednesday, October 19, 2016 7:55 PM

All replies

  • Looks to me like there's libraries available for that.

    Google search results for "Caldav ical .Net api"

    Google search results for ".net caldav client library"

    Google search results for "Caldav iCloud client vb.net"

    Google search for "Caldav iCloud client vb.net libraries"

    Adding iCalendar Support to Your Program - Part 1 - This link is old and you will need to use a converter such as Telerik to convert the C# code to VB.Net if it will all convert correctly.

    Also Caldav itself seems to be an internet standard. With regard to iCloud Caldav perhaps you would need to find an apple group to get information about that. Although from various threads I've read a Caldav client should be able to work with any Caldav site which I guess is what iCloud may be or may have available among other things.


    La vida loca

    • Edited by Mr. Monkeyboy Wednesday, October 19, 2016 8:17 PM
    • Proposed as answer by Devon_Nullman Wednesday, October 19, 2016 11:32 PM
    Wednesday, October 19, 2016 8:08 PM
  • Also read the information at this link Harvard University - iCloud Calendar sharing to iCal4 or CalDAV client and if the information is accurate, I don't know what year it was created, then a CalDav client should be able to access iCloud Calendar if the configuration is set up correctly at iCloud for the Calendar in question.

    Since CalDav is a standard then a CalDav client should work.

    However it may be that you would need to find an Apple developers site regarding iCloud Calendar to verify this.

    Also see How to connect to icloud calendar? and not that Cronofy mentioned at link is an API that has to be purchased.


    La vida loca

    Thursday, October 20, 2016 3:51 AM
  • Thank you for your suggestions.  I'd already seen many of these links.  Most either use some DLL/Library/product  which I can't get to work, is not suitable for VB or is a generic framework.

    I've yet to be able to piece together the right URL, Headers, and request syntax to get anything but "Bad Request" back fro iCloud.  I will continue to look for a straight forward example which I can replicate in a VB script.  I have the relevant ID's...I just can figure out what to do with them.

    Thanks again for your help,

    Rick (aka Mad Mellow)


    Rick

    Thursday, October 27, 2016 11:30 AM
  • Hi Mad Mellow,

    Thank you for posting in MSDN Forum.

    The only API into Apple Calendar is CalDAV. This is a client/server document protocol that is used to submit and retrieve iCalendar documents. Since you are developing with third-party API. We are unable to offer helpful suggestion. I suggest you could post in iCloud for Developers for better support.

    Thanks for your understanding and support.

    Best Regards,

    Neda Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    • Edited by Neda Zhang Wednesday, November 02, 2016 9:56 AM
    Wednesday, November 02, 2016 9:45 AM