Hello,

I am having a problem telling the difference between the user's
calendars and the calendars that were shared with the user.  When I
retrieve a list of user calendars, they all show up.  However, I only
want to see the user's calendars.  I assume that I can do this using
the author of the calendar.  This, however, does not work since it
returns the calendar's name and not the author.  Is there a way I can
easily distinguish between the user's calendars and the calendar's
that were shared with the uesr (i.e. I only want the calendars that I
own)?

Thank you,

Dimon.


Code that I have used but failed to work:

           Uri feedUrl = new Uri("http://www.google.com/calendar/
feeds/" + userGoogleEmail);
           Google.GData.Client.FeedQuery query = new
Google.GData.Client.FeedQuery(feedUrl.ToString());
           Google.GData.Client.AtomFeed calFeed;

               calFeed = myService.Query(query);

string myName = calFeed.Entries[0].Authors[0].Name;

           foreach (Google.GData.Client.AtomEntry entry in
calFeed.Entries)
           {
               if (entry.Authors[0].Name == myName)
               {
               string calURL = entry.Title.Text;
               calendarsUriList.Add(calURL);
               }
           }
           return calendarsUriList;


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