Is there an open iCalender API?

Is there any API that I can use and send event data (e.g. using querystrings) and return a file that a visitor can upload and add to their calendar?

I can, of course, write the script myself, but if there is an open API, I could save some time.

+4
source share
5 answers

You can use iCal4j

+10
source

You asked for some kind of web service, and I don’t know one thing, but if you use .NET, you can create your own using this library:

http://www.codeproject.com/KB/vb/vcalendar.aspx

+4
source

Perhaps this is an option to create and send email to the user containing the appointments you want to add. By doing this, you:

  • Do not use any API
  • Use the built-in auto-parsing feature of Apple Mail (Mac OS and iOS).
  • Stay compatible with other users who cannot use iCal
+2
source

I just used DDay.iCal , which works great for C #. You can see the documentation here on how to read / parse the .ics file, and this is what I used to create a new file, it checks if Outlook and the iOS email application are working:

 public static string GetCalendarAsString(string subject, DateTime start, DateTime end, string location, string timeZoneName) { var calendar = new iCalendar(); var timeZone = TimeZoneInfo.FindSystemTimeZoneById(timeZoneName); calendar.AddTimeZone(iCalTimeZone.FromSystemTimeZone(timeZone)); var evt = new Event { Start = new iCalDateTime(start), End = new iCalDateTime(end), Location = location, Summary = subject, IsAllDay = false }; calendar.Events.Add(evt); var serializer = new iCalendarSerializer(); return serializer.SerializeToString(calendar); } 

you can use several other properties, although I only need these

+2
source

All Articles