Sitze und Rechtsformen aus Zefix API

This commit is contained in:
schrom01 2023-08-21 20:51:05 +02:00
parent d8e56b297e
commit 28661a198a
1 changed files with 3 additions and 1 deletions

View File

@ -84,8 +84,10 @@ function sendAPICommunityRequest(string $username, string $password): string|boo
} }
function communityCSV(string $username, string $password): string { function communityCSV(string $username, string $password): string {
echo "TEST";
$response = sendAPICommunityRequest($username, $password); $response = sendAPICommunityRequest($username, $password);
echo "TEST";
echo $response;
echo "TEST3";
$communityArray = json_decode($response, true); $communityArray = json_decode($response, true);
$csvOutput = 'bfsId,Kanton,Gemeindename,registryOfCommerceId\n'; $csvOutput = 'bfsId,Kanton,Gemeindename,registryOfCommerceId\n';
// Create CSV rows // Create CSV rows