If you are only getting 25 events you need to either set max-results
to a larger value or page through the results.
Ray
On Sep 9, 2008, at 10:58 AM, billh wrote:
>
> Thanks Austin, but asking for several months still only retrieves the
> last 25 events, regardless of the min start time. It appears that
> there is a limit on how many are returned at one time.
>
> Is there a recommended way to test for remaining entries and iterate
> so I can get all within a date range?
>
> Example: All events this year, to date:
>
>
> myQuery
> .setMinimumStartTime
> (DateTime.parseDateTime("2008-01-01T00:00:00.000-06:00"));
>
> myQuery
> .setMaximumStartTime
> (DateTime.parseDateTime("2008-09-09T23:59:59.000-06:00"));
>
> --Retrieves only 25 of the 200+ events during this period.
>
> Thanks.
>
> Bill
>
> On Aug 4, 11:58 am, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I think this is due to the missing timezone specification within
>> your date
>> time strings. Without the timezone designation, it is assumed to
>> be GMT
>> timezone (0 hour offset). Let say your local timezone is pacific
>> daylight
>> saving timezone, then you need to use the -7 hours offset as your
>> timezone,
>> ie
>>
>> 2008-07-01T00:00:00-07:00
>>
>> You just need to find the appropriate offset for your local timezone.
>>
>> Hope that helps,
>> Austin
>>
>> On Fri, Aug 1, 2008 at 7:37 PM, billh <[EMAIL PROTECTED]> wrote:
>>
>>> I want all events in my calendar for July 2008, but it only yields
>>> from the 10th to the 29th. July 1-9 and 30-31 are missing. If I
>>> change the min start to Jan 1 I still only get events beginning July
>>> 10. Why? Are there other parameters or bounds I in effect?
>>
>>> In java:
>>
>>> CalendarQuery myQuery = new CalendarQuery(feedUrl);
>>
>>> myQuery
>>> .setMinimumStartTime(DateTime.parseDateTime("2008-07-01T00:00:00"));
>>
>>> myQuery
>>> .setMaximumStartTime(DateTime.parseDateTime("2008-07-31T23:59:59"));
>>
>>> CalendarService myService = new CalendarService("exampleCo-
>>> exampleApp-1");
>>> myService.setUserCredentials("[EMAIL PROTECTED]",
>>> "somepassword");
>>
>>> CalendarEventFeed resultFeed = myService.query(myQuery,
>>> CalendarEventFeed.class);
>>> List<CalendarEventEntry> eventList = resultFeed.getEntries();
>>> for (CalendarEventEntry eventEntry : eventList) {
>>> ... starts with Jul 10th
>>
>>> Thanks.
>
> >
--
Ray Baxter
http://67central.com/bc/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---