Daran habe ich noch gar nicht gedacht. Werde es mal probieren.
PHP
protected function getFuncId(string $func, int $id = null, bool $auth = true)
{
$u = "https://api.sped-v.de/rest/api?";
if($auth){
$u .= "apikey=" . urlencode($this->ApiKey) . "&";
}
$u .= "function=" . $func;
if ($id != null) {
$u .= "&id=" . $id;
}
$ch = curl_init ($u) ;
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1) ;
$res = curl_exec ($ch) ;
curl_close ($ch) ;
return ($res);
}
Alles anzeigen
#1 @seegras leider keine Änderung.
#2 Hab mal den Sourcecode dabei gelegt.