benjcunningham / googlecalendar

Easily access and modify calendars, events, and UI settings via the Google Calendar API
Other
12 stars 6 forks source link

gc_event_ls() - returns only first 250 events #17

Open bczernecki opened 6 years ago

bczernecki commented 6 years ago

The function gc_event_ls() returns only 250 events regardless the real number of events available in calendar. I think it looks very similar to this issue: https://github.com/jdeboer/gcalendar/issues/4, so I hope it might be solved this same way

Best, Bartek

benjaminrobinson commented 6 years ago

I'm only getting 10 records returned with mine...Any update on this? Thought this might help?

https://developers.google.com/calendar/v3/pagination

benjaminrobinson commented 6 years ago

In the "Details" section of the gc_event_ls(), it says:

An arbitrary number of optional query parameters may be supplied via .... A list of optional query parameters can be found in Events: List.

This includes a link to this: https://developers.google.com/calendar/v3/reference/events/list#parameters and the "maxResult" option is included.

paddytobias commented 6 years ago

Hi, Could you please provide an example of how to use the optional query parameters in gc_event_ls()? Thanks