Sitze und Rechtsformen aus Zefix API
This commit is contained in:
parent
39f500feec
commit
3dd7361f45
|
@ -47,8 +47,6 @@ curl_close($ch);
|
||||||
|
|
||||||
function sendAPICommunityRequest(string $username, string $password): string|bool
|
function sendAPICommunityRequest(string $username, string $password): string|bool
|
||||||
{
|
{
|
||||||
echo $username;
|
|
||||||
echo $password;
|
|
||||||
// API endpoint
|
// API endpoint
|
||||||
$apiUrl = 'https://www.zefix.admin.ch/ZefixPublicREST/api/v1/community';
|
$apiUrl = 'https://www.zefix.admin.ch/ZefixPublicREST/api/v1/community';
|
||||||
|
|
||||||
|
@ -77,7 +75,7 @@ function sendAPICommunityRequest(string $username, string $password): string|boo
|
||||||
}
|
}
|
||||||
// Close cURL session
|
// Close cURL session
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
|
echo $response;
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue