From a174811260c262d45d9f62abea8f72bc36560980 Mon Sep 17 00:00:00 2001 From: "olaf.braun" Date: Wed, 25 Jun 2025 21:50:50 +0200 Subject: [PATCH] =?UTF-8?q?AddOn/Fehlzeitenimport/index.php=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AddOn/Fehlzeitenimport/index.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 AddOn/Fehlzeitenimport/index.php diff --git a/AddOn/Fehlzeitenimport/index.php b/AddOn/Fehlzeitenimport/index.php new file mode 100644 index 00000000..69f247c2 --- /dev/null +++ b/AddOn/Fehlzeitenimport/index.php @@ -0,0 +1,32 @@ +getExportDefinitions(); + +// 2. Organisationseinheiten abrufen +$units = $api->getOrganizationUnits(); + +// 3. Export starten +$guid = $api->requestExport( + '', + '', + '01.01.2024', + '31.01.2024' +); + +// 4. Exportdaten abrufen +$data = $api->getExportData($guid); + +// Ergebnis prüfen +if (isset($data['Result']) && $data['Result'] === 'JobPending') { + echo "Export läuft noch. Bitte später erneut versuchen."; +} else { + print_r($data); // Daten vorhanden +}