I managed to solve the problem.

first i requested a feed on the user's associated calendars with this
uri.

Uri feedUrl = new Uri("http://www.google.com/calendar/
feeds/"+GoogleAccount);

the returning feed should include one entry per associated calendar to
the account.

each calendar uri is within each entry in the "href" attribute of the
Link tag which ref attribute is "alternate".

so, with each calendar, you request for the event feed with the
searchstring that you like. it's important to notice that here you get
an EventFeed, using an EventQuery.  don't forget it, i spent many
hours trying to figure out how to convert an AtomFeed to an EventFeed,
but it wasn't even necessary in the first place.

example:

  Uri feedUrl = new Uri(uriLink); //this is the calendar link you
obtained before.
          EventQuery query = new EventQuery(feedUrl.ToString());
        //set QueryString only if specified.
        if (searchString !="")
        query.Query = searchString;
        // Create a Calendar service object:
        CalendarService service = new CalendarService("myCompany-
myApp-1");
        // Set your credentials:
        service.setUserCredentials(GoogleAccount, password);
        // Tell the service to query:
        EventFeed  calFeed= service.Query(query);



in my case foreach entry in calfeed.Entries i added the entry relevant
data to a datatable and displayed it on screen.

cheers! :D



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