Is there a way to programmatically import ICS into Google Calendar?

我是研究僧i 提交于 2019-12-31 08:43:08

问题


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?


回答1:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/135302/is-there-a-way-to-programmatically-import-ics-into-google-calendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!