Forum

test taker into group using API TAO 3.2

Hi, I'm trying to insert a taker test into a group via API but the procedure is not successful as it should. In fact, when I go to check the results, the group updates correctly but users are not included.

this is the example code:

$process = curl_init($this->_taoBaseUrl."/taoGroups/Api");

curl_setopt($process, CURLOPT_PUT, 1);
curl_setopt($process,CURLOPT_HTTPHEADER, array(
"Accept: application/json",
"uri: http://localhost/quiz_manager/quiz_manager.rdf#i1520349601869189",
"member: http://localhost/quiz_manager/quiz_manager.rdf#i15211366002828363"
));

curl_setopt($process, CURLOPT_USERPWD, TAO_ADMIN_USERNAME.":".TAO_ADMIN_PASSWORD);
curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
$returnedData = curl_exec($process);
$httpCode = curl_getinfo($process, CURLINFO_HTTP_CODE);
$result = json_decode($returnedData, true);
curl_close($process);

can you help me?

Comments

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy

×