bessermitfahren.de integrieren
https://www.bessermitfahren.de/api
function get_api_key() {
$ch = curl_init();
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://';
$data = array(
'cls' => 'api_page',
'action' => 'get_api_key',
'studip' => $GLOBALS['SOFTWARE_VERSION'],
'url' => $protocol.$_SERVER['HTTP_HOST']
);
curl_setopt($ch, CURLOPT_URL, 'https://www.bessermitfahren.de?'.http_build_query($data));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if(!curl_errno($ch)) $ret = curl_exec($ch);
curl_close($ch);
return $ret;
}