34

I don't see any obvious way to import ICS files into Google Calendar from the API docs here:

http://code.google.com/apis/calendar/developers_guide_protocol.html

And I'd greatly prefer not to have to parse them myself just to send the appointments into GCal. I'm looking for a programmatic solution, not something like import plugins for Thunderbird, Outlook, etc. Third party APIs to do the ICS parsing are acceptable, in any language. Any ideas?

Kara
  • 6,115
  • 16
  • 50
  • 57
Joe Shaw
  • 22,066
  • 16
  • 70
  • 92
  • 1
    Is there any progress on this question? Is it really impossible to import a ics into Google Calendar without parsing it before? – theomega Jul 18 '11 at 14:03
  • The top two answers below seem plausible, but I was not able to test them and get them working. And now I no longer have an urgent need for the functionality. If either the C# or the Ruby solution below work, let me know! – Joe Shaw Jul 24 '11 at 02:10
  • 1
    Note that the lack of API support for directly importing ICS files is the topic of this entry in google's bug tracking system: [Issue 210 - apps-api-issues - Ability to import Standard iCalendar (.ics) file](https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=210) – nealmcb Oct 11 '14 at 01:25

3 Answers3

6

I have created a simple open source .net utility to do just that, available at http://gcalicsimporter.codeplex.com/.

Alejandro Mezcua
  • 1,211
  • 1
  • 9
  • 13
3

You shouldn't have to parse an ICS just to import it into Google Calendar, it is capable of importing them directly... From the end-user's web view, it's as easy as clicking Import Calendar. From the API, I would look at the Adding New Subscriptions section.

Grank
  • 5,242
  • 7
  • 33
  • 36
  • 3
    This doesn't quite work, because I don't want to subscribe to a web-based calendar. The data I want to push in isn't available on the web. I want to basically upload a file and have Google calendar become the canonical store for it. – Joe Shaw Sep 25 '08 at 19:29
  • @Grank not an answer for the OP, still what I was looking for :) – Mmmh mmh Feb 05 '14 at 12:51
2

For my iCal2GCal app I'm using the Googlecalendar Ruby Gem to both parse .ics files and then add the events inside to a Googlecalendar. It might give you some ideas on how to go about it. You can check out the full source code.

  • Unfortunately the googlecalendar rubygem doesn't seem to work with Google Apps accounts, so I can't test this. – Joe Shaw Apr 02 '10 at 21:14