Hi Dave,
I am unable to reproduce this bug you have described. This is the
sample Java code I used to list events and their start time using the
magic cookie -
public void usingMagicCookie() throws Exception {
String userId = "[EMAIL PROTECTED]";
String mcookie = "private-c58d33ebXXXXXXXXXX";
URL feedUrl = new URL("http://www.google.com/calendar/feeds/" + userId
+ "/" + mcookie + "/full");
CalendarQuery myQuery = new CalendarQuery(feedUrl);
CalendarEventFeed resultFeed = myService.query(myQuery,
CalendarEventFeed.class);
Iterator eventIter = resultFeed.getEntries().iterator();
while (eventIter.hasNext()) {
CalendarEventEntry entry = (CalendarEventEntry) eventIter.next();
System.out.println("Event Title: " +
entry.getTitle().getPlainText());
List<When> whens = entry.getTimes();
Iterator iter = whens.iterator();
while(iter.hasNext()) {
When when = (When) iter.next();
System.out.println("Start Time: " + when.getStartTime());
}
}
}
Can you try to run this snippet replacing your own userId and the
respective magic cookie? Let me know if this is still giving you empty
starttimes
Austin
On Dec 4, 3:44 pm, djking77 <[EMAIL PROTECTED]> wrote:
> Should I be filing this as bug?
>
> - Peace
> Dave
>
> On Nov 30, 6:26 pm, djking77 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Same issue with querry and getFeed. Calls:
>
> > CalendarEventFeed events = gCalService.query(myQuery,
> > CalendarEventFeed.class);
>
> > CalendarEventFeed myFeed = gCalService.getFeed(calUrl,
> > CalendarEventFeed.class);
>
> > Running Java 6 u3, pulled down the latest version of gdata libs this
> > morning: 1.15.
>
> > - Peace
> > Dave
>
> > On Nov 30, 2:50 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > That seems a bit strange, it should output a non-zero for the
> > > getTimes().size(). Have you tried to retrieve all events without
> > > filtering it through time range? Just to see if this would output a
> > > non-zero value
>
> > > Austin
>
> > > On Nov 30, 8:03 am, djking77 <[EMAIL PROTECTED]> wrote:
>
> > > > I use a CalendarQuery to query the magic cookie URL for a range of
> > > > times, and I get the expected Test Event, but the entry.getTimes
> > > > returns a list of zero size. The data is in the entry as it can be
> > > > printed from the summary. Parsing the summary feels wrong so what am
> > > > I missing? How do I get the start time for the event? Start and End
> > > > time show up as expected via the G Cal WebUI.
>
> > > > Here is the related code and results:
>
> > > > for(CalendarEventEntry entry: entries){
> > > >
> > > > System.out.println(entry.getTitle().getPlainText());
> > > > System.out.println(entry.getTimes().size());
> > > >
> > > > System.out.println(entry.getSummary().getPlainText());
> > > > }
>
> > > > Test Event
> > > > 0
> > > > When: Fri Nov 30, 2007 2:45pm to Fri Nov 30, 2007 5:45pm MST
>
> > > > Who: Dave King
> > > > Event Status: confirmed- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---