Thanks for your help. I didn't realize that
calendar_service.GetCalendarEventFeed() took an arguement of a
calendar to get the event feed from. Is this in the docs? If it is, it
should be more discoverable, and if not, it needs to be added. I
didn't find it and I looked around a good bit, only found it on an
external PHP help site.
Here's the code I got working...modified from the example:
def PrintAllEventsOnDefaultCalendar(calendar_service):
feed = calendar_service.GetCalendarEventFeed("http://www.google.com/
calendar/feeds/ionob41bpek5d88a9ijjetp2oo%40group.calendar.google.com/
public/full")
print 'Events on Primary Calendar: %s' % (feed.title.text,)
for i, an_event in enumerate(feed.entry):
print '\t%s. %s' % (i, an_event.title.text,)
On Feb 21, 12:55 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
> Hi,
> To perform operations on a specific calendar is done by specifying the
> calendar ID in the URL feed.
>
> The URL feed for a calendar has the following format:
>
> http://www.google.com/calendar/feeds/[ID]/private/full<http://www.google.com/calendar/feeds/%5BID%5D/private/full>
>
> The ID of a calendar can be looked up by going to your Google Calendar
> account -
> 1) click on the "Settings" on the top right
> 2) choose the "Calendars" tab
> 3) click on the calendar you wish to insert the event to
> 4) go down to the row where it says "Calendar Address", you will see the
> calendar ID
>
> Austin
>
> On Thu, Feb 21, 2008 at 8:09 AM, Eric Holscher <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > I am looking at the beginning docs, and it shows how to get a list of
> > calendars. Then it also shows how to retrieve events from your primary
> > calendar, but it doesn't show any way to retrieve them from one of the
> > calendars listed in the list of calendars. Also, is there an easy way
> > to get the list of events from the calendar ID?
>
> > I think I need to somehow update the CalendarService object to tell it
> > which calendar to get its events from, but haven't found a way to do
> > that...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---