Hello Alain,

Thanks for the advice.  It seems pretty inefficient to loop through
all the calendars owned by a user, especially when I want to find a
specific calendar.  Is there any way to find a calendar by name?  In
absence of documentation in this matter, I resorted to tracking
calendar IDs in a database, and targeting the calendar directly.

FYI, I'm dealing with 1500 calendars across multiple accounts, so
"looping through" was a nightmare I didn't want to fathom.

Thanks,
Neil

On Nov 9, 6:58 pm, Alain Vongsouvanh <[email protected]> wrote:
> Hello Neil,
>
> I'm glad you manage to find a solution to your issue. If you are iterating
> through the list of calendar a user owns, you should use the calendar
> entry's self or edit link in order to retrieve or update this specific
> calendar.
>
> Best,
> Alain
>
> On Tue, Nov 8, 2011 at 8:26 AM, Neil Courtney <[email protected]>wrote:
>
>
>
>
>
>
>
>
>
> > Figured it out.  I use the following code, now, if anyone is interested:
> > calendarId = calendarId.substring(calendarId.lastIndexOf('/') + 1); // the
> > prefix returned by google doesn't work for reuse
> > URL entryUrl = new URL("
> >https://www.google.com/calendar/feeds/default/owncalendars/full/"; +
> > calendarID + "[email protected]");
> > CalendarEntry resultEntry = myService.getEntry(entryUrl,
> > CalendarEntry.class);
>
> > Following this, I was able to examine the entry, and update it if
> > necessary.
>
> > --
> > 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
>
> --
> Alain Vongsouvanh | Developer Programs Engineer

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