Child pages
  • PHP - hae varauksia
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Alla olevassa esimerkissä haetaan varauksia aikavälillä 22.11.2013 - 25.11.2013 luokkatilasta U423.

Varauksien haku
$url = '';
$apiKey='myApiKeyHere:'; // required ':' after the api-key 
$query= "{
$session = curl_init($url); // set up session 
CURLOPT_USERPWD, $apiKey); // authentication 
curl_setopt($session, CURLOPT_POSTFIELDS, $query); // add query entries 
$response = curl_exec($session); // execute and get response 
curl_close($session); //close session 




  • No labels
You must log in to comment.