On Tue, Dec 23, 2008 at 11:45 AM, Trevor Johns <[email protected]> wrote:
>
> On 2008-12-23 10:10:56 -0800, "[email protected]"
> <[email protected]> said:
>
>> A CalendarEventEntry must belong to a CalendarEntry. If now I get an
>> instance of CalendarEventEntry, how can I get the CalendarEventEntry's
>> CalendarEntry which it belongs to? Thank you!
>
> You can't.
>
> While a CalendarEventEntry must belong to a CalendarEntry, there's
> nothing preventing it from belonging to more than one CalendarEntry. In
> other words, it's not a 1:1 mapping.



You can't get all of the calendars to which an event belongs, but you
can get one. Here are two different Atom id's for the same event:

http://www.google.com/calendar/feeds/default/private/full/3heac8j8dsjea11j02f114m6vo
http://www.google.com/calendar/feeds/calendar.maven%40gmail.com/private/full/3heac8j8dsjea11j02f114m6vo

respectively they belong to the calendars with Atom ids:

http://www.google.com/calendar/feeds/default/private/full
http://www.google.com/calendar/feeds/calendar.maven%40gmail.com/private/full

You can easily see how to make the transformation.

My question is, "How did you get the event in the first place if you
didn't know the calendar it belonged to?"

Ray

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