Owncloud 10 calendar API

hi
im looking to build an app that would list a users calendar events for the current day and following 7 days, i had a script for owncloud 8.x that would query the database directly for this information but since i upgraded to owncloud 10.x that script no longer works.
Is there an API endpoint i can query for this information instead of having to directly query the database for this information ?

Thanks!

From what i know the "API" which is used for calendars in ownCloud is plain CalDAV. In my thunderbird i had to add the following link to a calendar:

http://example/remote.php/dav/calendars/username/calendarname/

which you probably can also query with own written CalDAV calls.