2
votes

I'm trying to limit the number of results returned by calendar-query.

For example I need to find only 10 first events. Can't find it in the description: https://www.rfc-editor.org/rfc/rfc4791#section-7.8.1 I can see that calendar service from google supports it:

https://developers.google.com/google-apps/calendar/v3/reference/events/list

-maxResults

Is there anything like this for caldav REPORT ?

Thanks!

2

2 Answers

2
votes

The calendar-query REPORT is documented in RFC 4791. As far as I can see it doesn't provide the client a way to limit the number of results. (Note that a server can apply a limit and return a number-of-matches-within-limits precondition failure if it is hit by the query)

Having said that, the way it is usually done in clients is that they only fetch the URL and the ETag of the matching events/todos as part of a calendar-query REPORT. Only then they retrieve the actual event payloads in batches using a calendar-multiget REPORT (that is, they can apply arbitrary limits in here).

0
votes

Checked the Google docs with regard to CalDAV API Developer's Guide and found no mention of a similar method like Calendar.list for that. Try to file a feature request here.