From 6d1fcf67b3d82096878e929f3bfc8c471e59e232 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Mon, 21 Aug 2023 20:52:20 +0200 Subject: [PATCH] Sitze und Rechtsformen aus Zefix API --- api/zefixAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/zefixAPI.php b/api/zefixAPI.php index 4bf6300..9fb6b1d 100644 --- a/api/zefixAPI.php +++ b/api/zefixAPI.php @@ -49,6 +49,8 @@ curl_close($ch); function sendAPICommunityRequest(string $username, string $password): string|bool { + echo $username; + echo $password; // API endpoint $apiUrl = 'https://www.zefix.admin.ch/ZefixPublicREST/api/v1/community'; @@ -85,9 +87,7 @@ function sendAPICommunityRequest(string $username, string $password): string|boo function communityCSV(string $username, string $password): string { $response = sendAPICommunityRequest($username, $password); - echo "TEST"; echo $response; - echo "TEST3"; $communityArray = json_decode($response, true); $csvOutput = 'bfsId,Kanton,Gemeindename,registryOfCommerceId\n'; // Create CSV rows