如何通过Google日历API获取日历ID
答
在developer guide的最后一行是:
CalendarEntry returnedCalendar = myService.insert(postUrl, calendar);
看的returnedCalendar
的ID:
String id = returnedCalender.getId();
感谢它正常工作它给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
@megala:找到最后一个斜杠的索引,并从那里取一个子串? – 2010-06-30 11:36:51
谢谢,我得到了答案 – user246160 2010-06-30 12:32:38