Reputation: 153
I'm currently using the new Google API 1.5 beta, and I can't find any examples for retrieving a calendar feed. The examples posted here only seem to provide a list of calendars per account and not their events. Is the old GData API the only way to retrieve a calendar feed right now? And if so, is it worth waiting for this feature to appear in the new API if I only want to retrieve an event feed?
Upvotes: 2
Views: 445
Reputation: 153
Did some digging around in the other non-Android examples and found this to work:
CalendarUrl url = new CalendarUrl(calendar.getEventFeedLink());
try {
EventFeed feed = client.eventFeed().list().execute(url);
for(EventEntry entry : feed.getEntries()) {
// etc....
}
}
catch(IOException e) {
e.printStackTrace();
}
Upvotes: 1