// cURL används, se http://www.php.net/manual/en/book.curl.php
$baseUrl = "https://eventor.orientering.no/api/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
$baseUrl . "/activities?organisationId=093&from=2011-01-01&to=2012-01-01&includeRegistrations=true");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER,
array("ApiKey: c4696b04eb744f118c26e1378a3a25a7"));
$responseString = curl_exec($ch);
curl_close($ch);
?>
$xml = simplexml_load_string($responseString);
echo $xml->Activity->Name;
?>