I'm trying to edit a calendar entry based on a calendar ID.  When I created 
the calendars (via an administrator account using OAuth), I saved the 
calendar ID that was returned.  Now, I'm having a hard time finding the 
same calendar.  Here's the Java code I'm using:

URL feedUrl = new URL(calendarID + 
"/owncalendars/[email protected]");
CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);
System.out.println(resultFeed.getEntries().size());

calendarID, returned by Google upon calendar creation, was:
http://www.google.com/calendar/feeds/default/calendars/ocadu.ca_rc8gq7c9vkmdjgkke5s0491524%40group.calendar.google.com

The error I get for the above code is:
Exception in thread "main" com.google.gdata.util.InvalidEntryException: Bad 
Request
Unexpected resource version ID

The only information I can find online seems to indicate I should iterate 
through all calendars owned by a user until I find the one that matches.  
There must be an easier way to do it than this.  All I want to do is update 
a calendar based on changed information.  I've tried many different 
attempts using similar URLs, and I seem to get a different error every time.

Does anyone have any idea how to get a CalendarEntry based on CalendarID?

Thanks

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to