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