[#67] added export calendar functionnality (#294)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-11-12 20:42:35 +01:00
committed by GitHub
parent f886846a2b
commit 6305f55d1a
5 changed files with 105 additions and 10 deletions
+11
View File
@@ -139,3 +139,14 @@ export async function getSecretLink(calLink: string, reset: boolean) {
.json();
return response as { secretLink: string };
}
export async function exportCalendar(calLink: string) {
const response = await api
.get(`dav${calLink}?export`, {
headers: {
Accept: "application/calendar",
},
})
.text();
return response;
}