posting this as it just caused me an hour of grief
the actual code to get the calendar ID from the calendarEntry feed
is :
var calendarId = calendarEntry.getId().$t;
without the .$t you get object object instead of the URL.
hopefully this will save the next newbie some time
Trevor Johns Google employee
View profile
More options Dec 15 2008, 8:35 pm
From: Trevor Johns <[email protected]>
Date: Mon, 15 Dec 2008 17:35:33 -0800
Local: Mon, Dec 15 2008 8:35 pm
Subject: Re: retrieve calendar ID
Forward | Print | Individual message | Show original | Report this
message | Find messages by this author
On Sat, Dec 13, 2008 at 11:53 AM, [email protected]
<[email protected]> wrote:
> Hello,
> How do you retrieve the calendar id?
> I program with Java.
> And would like know if exists a method for retrieve calendar id for a
> specific calendar.
> Thanks for your answers.
It depends on what you mean by Calendar ID.
If you're just looking for an identifier that you can use to match
Calendars between requests, then you can just call
CalendarEntry.getId().
However, if you want to know the calendar's address as displayed in
the HTML UI, then you'll need to write a regex to extract the
calendar's address from the URL returned by getId().
--
Trevor Johns
Forward
Report spam
Reporting spam
Message reported
Rate this post: Text for clearing space
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before
posting.
You do not have the permission required to post.
--
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.