// Set up the URL and the object that will handle the connection:

URL feedUrl = *new* URL(*feedUri*);

// Send the request and receive the response:

CalendarEventFeed resultFeed = service.getFeed(feedUrl,

CalendarEventFeed.*class*);

*for* (*int* i = 0; i < resultFeed.getEntries().size(); i++) {

gdata.data.calendar.CalendarEventEntry entry = resultFeed.getEntries
().get(i);

List timeList = entry.getTimes();

*for* (*int* j=0; j<timeList.size();j++){

When eventTime = (When) timeList.get(j);

DateTime startTime = eventTime.getStartTime();

DateTime endTime = eventTime.getEndTime();

String startTimeStr = startTime.toUiString();

String endTimeStr = endTime.toUiString();

out.println(startTimeStr);

out.println(endTimeStr);
}

and the setFeedUri i am using is

setFeedUri(http://www.google.com/calendar/feeds/default/private/full);

this is my code.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to