I am trying to get the count of ALL calendar events for a period of time.
Using .net client 1.8 version.
In most of the cases, the count is not matching with the actual count of
events in the Google calendar. I am using the following code. Some events
are not counted. Please suggest if any other parameter i am supposed to
use.
String strUri =
string.Format("https://www.google.com/calendar/feeds/{0}/private/?max-results=99999",
gmailAc);
EventQuery evntQuery = new EventQuery();
evntQuery.Uri = new Uri(strUri);
evntQuery.SingleEvents = true;
evntQuery.StartTime = this.StartDate;
evntQuery.EndTime = this.EndDate;
evntQuery.ExtraParameters =
"orderby=starttime&sortorder=ascending";
EventFeed calFeed = myService.Query(evntQuery) as EventFeed;
if (calFeed != null && calFeed.Entries.Count > 0)
{
return calFeed.Entries.Count;
}
---------------------------
Here is the test information for a 2 week period. April 1 - 15. During this
period there were:
April 4th:
8AM Recurring weekly event. Shows in Google.
3PM Single event. Came over to Google.
April 5th:
12 to 4PM Single event. *Did not come over to Google. *
April 8th:
12:00 AM Recurring event, biweekly. *Did not come over to Google.*
9:00 AM Recurring event, weekly. Came over to Google.
April 11th:
8AM Recurring weekly event. Came over to Google.
April 12th:
1:00PM Single event. Came over to Google.
April 14th:
9:00 AM Bi weekly event. Did not come over to Google.
The highlighted events are not showing in the event fee even though
available in Google calendar.
FYI: Tried the same test data with MS Exchange 2010 server by EWS web
services and all events showed up correctly.
Please suggest what I am missing.
Thanks in advance.
Benoy
--
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