-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: OCC and OCS Calendar Import/Export #49995
base: master
Are you sure you want to change the base?
Conversation
b0ee614
to
5198d6b
Compare
c69a4fb
to
8a6dd83
Compare
Hi @tcitworld I was wondering if you would be willing to test this out with some of your larger live data calendars? |
59a2223
to
67dc029
Compare
67dc029
to
8ad0991
Compare
8ad0991
to
213c1aa
Compare
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
a2f9ff4
to
8eff6e4
Compare
* | ||
* @since 31.0.0 | ||
* | ||
* @template-extends Response<int, array<string, mixed>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @template-extends Response<int, array<string, mixed>> | |
* @template-extends Response<Http::STATUS_*, array<string, mixed>> |
To fix the psalm warning below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kesselb you're amazing! You're title should be psalm master!
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Summary
This adds the ability to export calendars via the OCS and OCC.
OCC Export
Command: calendar:export
Arguments: userId calendarId format filepath
OCC Import
Command: calendar:import
Arguments: userId calendarId format filepath
Options: errors, validation, supersede, show-created, show-updated, show-skipped, show-errors
OCS Export
Endpoint: /ocs/v2.php/calendar/export
Request: GET/POST
{
"id": "personal",
"fmt": "xcal", (optional "ical, jcal, xcal", defaults to "ical")
"user": "user1" (optional admin permissions required)
}
Performance
Checklist