如何通过Google日历API获取日历ID

如何通过Google日历API获取日历ID

问题描述:

我对Google日历API有疑问。我使用Google日历开发人员指南创建了日历。我想通过程序检索日历ID。这怎么可能?如何通过Google日历API获取日历ID

developer guide的最后一行是:

CalendarEntry returnedCalendar = myService.insert(postUrl, calendar); 

看的returnedCalendar的ID:

String id = returnedCalender.getId(); 
+0

感谢它正常工作它给outputlike这个 http://www.google。 com/calendar/feeds/default/calendars/montfortperungudi.edu.in_tkpd38ud4ovaksh2mt812kui10%40group.calendar.google.com 我只想要这个 montfortperungudi.edu.in_tkpd38ud4ovaksh2mt812kui10 @ group.calendar.google.com 如何得到这样的结果 – user246160 2010-06-30 11:34:08

+0

@megala:找到最后一个斜杠的索引,并从那里取一个子串? – 2010-06-30 11:36:51

+0

谢谢,我得到了答案 – user246160 2010-06-30 12:32:38