Sitze und Rechtsformen aus Zefix API

This commit is contained in:
schrom01 2023-08-21 20:47:59 +02:00
parent abefba9b4d
commit 8182aed0f7
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ function sendAPICommunityRequest(string $username, string $password): string|boo
function communityCSV(string $username, string $password): string { function communityCSV(string $username, string $password): string {
$response = sendAPICommunityRequest($username, $password); $response = sendAPICommunityRequest($username, $password);
echo $response;
$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