ajmal744 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

UpdatedMin property of Calendar EventsResource.ListRequest returns an error if date entered greater than 20 days ago #239

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Request a range of events for a calendar
specify date older than 20 days ago for UpdatedMin property
error is returned

What is the expected output? What do you see instead?
should be able to specify any valid date for UpdatedMin property
should return all valid calendar events instead of returning error

What version of the product are you using? On what operating system?
Google Calendar API v3, Windows 7 74-bit

Please provide any additional information below.

Sample code below

var service = new CalendarService(auth3) { Key = _googleAppsApiKey };

CalendarListResource.ListRequest calListRequest =  service.CalendarList.List();
var calListResult = calListRequest.Fetch();

 foreach (EventsResource.ListRequest eventList in calListResult.Items.Select(calendar => service.Events.List(calendar.Id)))
{
eventList.TimeMin = XmlConvert.ToString(minCalendarStartDate, 
XmlDateTimeSerializationMode.Utc);
eventList.UpdatedMin = XmlConvert.ToString(minCalendarStartDate, 
XmlDateTimeSerializationMode.Utc);
eventList.TimeMax = XmlConvert.ToString(DateTime.UtcNow.AddYears(1), 
XmlDateTimeSerializationMode.Utc);
var events = eventList.Fetch();

####Error gets thrown on this Fetch()

Original issue reported on code.google.com by kevin.br...@datahug.com on 16 Aug 2012 at 9:41

GoogleCodeExporter commented 9 years ago
From the details you have provided this appears to be the Calendar Api 
returning an error. This project is not responsible for errors returned by the 
api's called, please contact the Calendar Api teams directly.

If I am mistaken here please provide more detail:
The network request and response
the full stack trace of the error.

Sorry I could not of been more help.

Original comment by davidwat...@google.com on 28 Aug 2012 at 7:35