Compare commits
No commits in common. "8182aed0f7c33bddbd316d45f7208b6bd196ec8a" and "cd00fe057d1720e548929e890c9d1802d0584b70" have entirely different histories.
8182aed0f7
...
cd00fe057d
|
@ -4,6 +4,7 @@ $username = getenv("username");
|
||||||
$password = getenv("password");
|
$password = getenv("password");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $
|
* @param string $
|
||||||
* @param string $
|
* @param string $
|
||||||
|
@ -85,7 +86,6 @@ 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
|
||||||
|
|
|
@ -144,6 +144,7 @@
|
||||||
let communityCsvData;
|
let communityCsvData;
|
||||||
let legalFormsCsvData;
|
let legalFormsCsvData;
|
||||||
<?php
|
<?php
|
||||||
|
include 'api/env_vars.php';
|
||||||
include 'api/zefixAPI.php';
|
include 'api/zefixAPI.php';
|
||||||
include 'gemeinden.php';
|
include 'gemeinden.php';
|
||||||
include 'legalForms.php';
|
include 'legalForms.php';
|
||||||
|
|
Loading…
Reference in New Issue