AddOn/Calender_Office365_User/calendar.php aktualisiert

This commit is contained in:
olinet 2025-09-07 12:02:31 +02:00
parent e408f1e0ca
commit e572fcbf35
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,6 @@ if (isset($_GET['delete'])) {
} }
// Termin erstellen // Termin erstellen
if(isset($_GET['create'])){ if(isset($_GET['create'])){
$event = [ $event = [
@ -93,6 +92,13 @@ if(isset($_GET['create'])){
echo json_encode($response, JSON_PRETTY_PRINT); echo json_encode($response, JSON_PRETTY_PRINT);
} }
if(isset($_GET['eventId'])) {
$event = $calendar->getEventById($eventId);
header('Content-Type: application/json');
echo json_encode($event, JSON_PRETTY_PRINT);
exit();
}
$events = $calendar->getEvents(); // eigene Funktion in OutlookCalendar-Klasse $events = $calendar->getEvents(); // eigene Funktion in OutlookCalendar-Klasse
header('Content-Type: application/json'); header('Content-Type: application/json');
echo json_encode($events, JSON_PRETTY_PRINT); echo json_encode($events, JSON_PRETTY_PRINT);