4 messages in com.googlegroups.google-calendar-help-dataapiRe: How to access events on all calen...
FromSent OnAttachments
Nitin22 Sep 2007 02:01 
Nitin22 Sep 2007 02:01 
Austin25 Sep 2007 15:09 
Nitin25 Sep 2007 23:43 
Subject:Re: How to access events on all calendras other that primary in java
From:Austin (api.@google.com)
Date:09/25/2007 03:09:06 PM
List:com.googlegroups.google-calendar-help-dataapi

Hi Nitiin,

To access a secondary calendar, you need to do is specify the corresponding calendar ID (eg. q1du@group.calendar.google.com) in the feed URL.

URL feedUrl = new URL("http://www.google.com/calendar/feeds/[CALENDAR ID]/private/full"); CalendarEventFeed resultFeed = myService.getFeed(feedUrl, CalendarEventFeed.class);

Replace [CALENDAR_ID] with the actual ID of the secondary calendar.

There are two ways to look up calendar ID:

1) Physically go to the calendar and browse to "Settings" => "Calendars". Select the calendar you wish to access and the calendar ID is listed on the "Calendar Address" entry.

2) Programmatically retrieve the calendar ID with the allcalendar feed, for more details on this go to

http://code.google.com/apis/calendar/developers_guide_protocol.html#RetrievingCalendars

Austin

On Sep 22, 2:01 am, Nitin <niti@gmail.com> wrote:

Hi, Iam able to access events on only Primary calendar but im not able to access events on other calendars, so can you please tell me the way to get the events on all calendars. Thanks & Regards, Nitin M. Ware