Hi everybody,
I've got a question as to how to get the URI link for writing to non-
primary calendars. The following code works fine for creating a
calendar and getting a feed link from owncalendars/full whcih enables
me to add events, which is in the format <link rel='alternate'
type='text/html' href='http://www.google.com/calendar/feeds/
c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com/private/full'/>
createdCalendar = DirectCast(myService.Insert
(query.Uri, calendar), CalendarEntry)
myDatatable.Rows(n)("URI") =
createdCalendar.Content.AbsoluteUri
However, on the same feed (I've tried owncalendars and allcalendars) I
can't retrieve the right uri using the following code, which I am
testing against a list of uri's that have already been created:
For Each entry As CalendarEntry In
resultFeed.Entries
Dim myURI As String =
entry.Content.AbsoluteUri
If myURI = testURI Then
.........
End If
Next
On debugging I can't get to the right property on the calendarService,
the calendarFeed or calendarEntry.
I'm new to .NET and the Google API, so please be kind if I'm
completely off track or being utterly stupid... I have looked
everywhere including all the Docs, and the only answer I found was as
follows, but even using "Links" and reformulating, I still had no
luck:
The calendar id is at: entry.link[0].href.split("/")[-3] where entry
is an entry in the entry list returned by GetAllCalendarsFeed.
or
gdata.calendar.service.CalendarService(entry.link[0].href)
Thanks alot,
Neil
Visual Basic .NET 3.0
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---