2 messages in com.googlegroups.google-calendar-help-dataapiHow can I operate non-primary calend...
FromSent OnAttachments
mone...@gmail.com23 Mar 2008 21:12 
Austin (Google)24 Mar 2008 17:45 
Subject:How can I operate non-primary calendar in python
From:mone...@gmail.com (mone@gmail.com)
Date:03/23/2008 09:12:03 PM
List:com.googlegroups.google-calendar-help-dataapi

Hello I'm trying to operate google calendars with python, after read the sample code and Google's Calendar Python develop guide , I still confused to handle the non-private calendar.

#--------- new_calendar = self.cal_client.InsertCalendar(new_calendar=calendar) return new_calendar #--------- Above code can create a new calendar, and I can operate it well,such as add event and delete event. but how to handle a exist calendar?

#--------- def PrintAllEventsOnDefaultCalendar(calendar_service): feed = calendar_service.GetCalendarEventFeed() #--------- Above code: GetCalendarEventFeed method returns the user's primary calendar,how can I get the non-primary calendar? so I check the reference . GetCalendarEventFeed(self, uri='/calendar/feeds/default/private/full')

so I think I should make a right uri for methord GetCalendarEventFeed() after several codes , I can get the right target calendar ID , such as "c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com" and I try many times to glue a good uri for GetCalendarEventFeed(), but failed finally. none of the worked. such as : /calendar/feeds/c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com and so on.

Can anyone give me some suggestion.