Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to check if a calendar exists
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jazzwhistle  
View profile  
 More options Sep 3 2009, 7:27 pm
From: Jazzwhistle <notesandto...@gmail.com>
Date: Thu, 3 Sep 2009 16:27:55 -0700 (PDT)
Local: Thurs, Sep 3 2009 7:27 pm
Subject: How to check if a calendar exists
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 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.
End of messages
« Back to Discussions « Newer topic     Older topic »