The orderby parameter doesn't work in my query. The sortorder and max-
results parameters work fine. Could someone tell me what's up? thanks
public StringCollection myDateCollection = new StringCollection();
public StringCollection myEventCollection = new StringCollection();
public StringCollection myUrlCollection = new StringCollection();
public StringCollection myTimeCollection = new StringCollection();
private void CreateEventList()
{
EventFeed myEventFeed;
CalendarService myService = new
CalendarService("FairviewBandBoosters");
EventQuery myQuery = new EventQuery();
string queryString="http://www.google.com/calendar/feeds/
4cdv48mtoekr8sp4ij492c9sfk%40group.calendar.google.com/private-
e13e19142fa107764449944750c543f4/full?
orderby=starttime&futureevents=true&sortorder=ascending&max-
results=10";
myQuery.Uri = new Uri(queryString);
myEventFeed = myService.Query(myQuery);
foreach (Google.GData.Calendar.EventEntry myEntry in
myEventFeed.Entries)
{
if (myEntry.Times.Count > 0)
{
myDateCollection.Add(myEntry.Times[0].StartTime.ToShortDateString());
myTimeCollection.Add(myEntry.Times[0].StartTime.ToShortTimeString());
myEventCollection.Add(myEntry.Title.Text);
myUrlCollection.Add(myEntry.Links[0].AbsoluteUri.ToString());
}
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---