EHC Club Manager
hd_get_leagues.php File Reference

Variables

 $url = "https://api.hockeydata.net/data/ebel/GetLeagues?apiKey=" . HD_API_KEY . "&sport=icehockey"
 
 $headers
 
 $ch = curl_init()
 
 $response = curl_exec($ch)
 
 $data = json_decode($response, true)
 
if($data) else
 

Variable Documentation

◆ $ch

$ch = curl_init()

◆ $data

$data = json_decode($response, true)

◆ $headers

$headers
Initial value:
= [
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"Accept: application/json, text/javascript, */*; q=0.01",
"Accept-Language: de,en;q=0.9",
]

◆ $response

$response = curl_exec($ch)

◆ $url

$url = "https://api.hockeydata.net/data/ebel/GetLeagues?apiKey=" . HD_API_KEY . "&sport=icehockey"

◆ else

if ( $data) else
Initial value:
{
echo "Fehler: Keine Daten sind erhalten."