That works great! Thank you very much Kyle.
Kyle Marvin wrote:
> The list of entries describing individual calendar associated with a
> CalendarFeed can be found by:
>
> List<CalendarEntry> calendars = calendarFeed.getEntries();
>
> In the case of a single calendar for a given user, this would be accessible
> as:
>
> CalendarEntry firstCalendar = calendars.get(0);
>
> Hope this helps!
>
> -- Kyle
>
> On 10/5/06, ade350 <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for the information.
> >
> > I've been trying to get the timezone through the first way mentioned
> > above (using the om.google.gdata.data.calendar.CalendarEntry example).
> > I've pasted what I have so far and I can't seem to get it to compile.
> > I'm a bit confused on how to grab the CalendarEntry or CalendarEntrys
> > for the Feed? I've tried a number of different ways, our users should
> > only have one calendar associated with their account. Thanks again!
> >
> > URL calFeedUrl = new
> > URL("http://www.google.com/calendar/feeds/"+str_email);
> > CalendarService calendarService = new CalendarService(str_service);
> > calendarService.setUserCredentials(str_email, str_password);
> > new
> > com.google.gdata.data.calendar.CalendarFeed().declareExtensions(calendarService.getExtensionProfile());
> > com.google.gdata.data.calendar.CalendarFeed resultFeed =
> > (com.google.gdata.data.calendar.CalendarFeed)calendarService.getFeed(calFeedUrl,
> > com.google.gdata.data.calendar.CalendarFeed.class);
> >
> > CalendarEntry calendarEntry=
> > (CalendarEntry)calendarService.getEntry(resultFeed,
> > CalendarEntry.class);
> > String timezone =calendarEntry.getTimeZone().getValue();
> > System.out.println("TZ:"+timezone);
> >
> >
> > >
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---