Hi all,
I was wondering if someone could explain this behavior to me.
I have a series of public calendars that I extract data from for website
usage. The basic format is:
public DataTable getAllVenues()
{
DataTable dt_regions = generic_db_select("sp_get_regions"); //list
of calendars
List<gCalendarEvents> eventlist = new List<gCalendarEvents>();
foreach (DataRow row in dt_regions.Rows)
{
XmlDocument doc = new XmlDocument();
string url = row["CalendarLink"].ToString();
XmlNodeList nodes = doc.GetElementsByTagName("entry");
//doc.DocumentElement.SelectNodes("/entry");
foreach (XmlNode entry in nodes)
{
// do stuff
}
}
}
return dt;
}
Now this process works but the really odd thing is that it doesn't always
return all events for a calendar. However, if I track down which events are
missing and go to the calendar through Google and open up the event and
either change the event privacy from default to public or vice versa the
event appears the next time I call the calendar. Now this creates
additional problems because other seemingly random events will not show up
now from the same calendar. This behavior can be reproduced by editing a
calendar event. I also have another service that uses the calendarservice
with the same results and can post samples if requested. One interesting
note is that if I use a time based query between a set of dates it always
returns a complete list. If you wish to try to reproduce the errors
yourself:
http://www.google.com/calendar/feeds/rbqiup5mirm7ddljf69nrh6uc8%40group.calendar.google.com/public/basic
One other interesting note if posted into a browser it returns all venues
correctly.
Any help or explanation would be greatly appreciated.
Thank you in advance,
Chris
--
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