Se alle respondenter tilknyttet en undersøgelse https://doknet.dk/api/survey/{sid}/respondents
<?php // The authorization token $authorization = "Authorization: Bearer " . $token; // Parameters $sid = '<sid>'; // Setup cURL $ch = curl_init(https://doknet.dk/api/survey/<sid>/respondents'); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', $authorization ), )); // Send the request $response = curl_exec($ch); // Check for errors if($response === FALSE){ die(curl_error($ch)); } // Print the data from the response echo $response;