Du genåbner besvarelse af undersøgelsen på https://doknet.dk/api/respondent/answertogglestatus/{fid}/{sid}
<?php // The authorization token $authorization = "Authorization: Bearer <token>"; // Parameters $fid = '<fid>'; $sid = '<sid>'; // Setup cURL $ch = curl_init('https://doknet.dk/api/respondent/answertogglestatus/' . $fid . '/' . $sid); 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 . PHP_EOL; ?>