hi to all,
I'm newly with this google API. I'm trying to read my calendar in
a .net application.
I get the events but if I try to read the details of this event, like
StartTime, EndTime, Locations etc... I can't read the values.
I try with this code:
CalendarService myService = new CalendarService("exampleCo-
exampleApp-1");
myService.setUserCredentials("[EMAIL PROTECTED]", "password");
EventQuery myQuery = new EventQuery(uri);
myQuery.StartTime = new DateTime(2008, 9, 1);
myQuery.EndTime = new DateTime(2008, 10, 7);
EventFeed myResultsFeed = myService.Query(myQuery);
foreach (Google.GData.Calendar.EventEntry entry2 in
myResultsFeed.Entries)
{
Label1.Text += entry2.Title.Text + "\n";
When eventTime = new When();
Label1.Text += eventTime.StartTime.ToString();
Where eventLocation = new Where();
Label1.Text += eventLocation.ToString();
}
What is the exact uri for the EventQuery? What is wrong?
The return strings are these:
Event1 01/01/0001 0.00.00 Google.GData.Extensions.Where
Event2 01/01/0001 0.00.00 Google.GData.Extensions.Where
Thanks to all!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---