Compare commits
3 Commits
cd00fe057d
...
8182aed0f7
Author | SHA1 | Date |
---|---|---|
schrom01 | 8182aed0f7 | |
schrom01 | abefba9b4d | |
schrom01 | 8a4db6b905 |
|
@ -4,7 +4,6 @@ $username = getenv("username");
|
||||||
$password = getenv("password");
|
$password = getenv("password");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $
|
* @param string $
|
||||||
* @param string $
|
* @param string $
|
||||||
|
@ -86,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
|
||||||
|
|
|
@ -144,7 +144,6 @@
|
||||||
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