I'm writing a simple app to query events from one more Google calendar
using the .NET version of the Google API. So far, its mostly working,
but I'm having some problems querying recurring events from calendars
created by other users, but shared with me. The problems occurs when I
do a search on the shared calendar specifying a date range that does
not include the original start date of the recurring event. For
example, if I create a weekly recurring event on 02/15/2011 and then
search for all events between 02/01/2011 and 02/28/2011, I get the
expanded instance of each recurring event as expected. If, however, I
change the start/end times of the query to 02/20/2011 and 03/20/2011,
none of the recurring events are returned.
This only seems to happen on calendars created by other users and then
shared with me. My primary calendar and calendars that I have created
seem to work fine. Below is some sample code. Any suggestions would be
greatly appreciated!
EventQuery query = new EventQuery();
query.Uri = new Uri(https://www.google.com/calendar/feeds/
<calendar_id>/private/full);
query.StartDate = start;
query.EndDate = end;
query.StartTime = start;
query.EndTime = end;
query.RecurrenceStart = start;
query.RecurrenceEnd = end;
//Expand recurring events into individual events
query.SingleEvents = true;
//Sort ascending by start time
query.SortOrder = CalendarSortOrder.ascending;
query.NumberToRetrieve = maxEvents;
EventFeed feed = mCalendarSvc.Query(query);
--
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://code.google.com/apis/calendar/community/forum.html