4 include_once
'./Services/WebServices/ECS/classes/class.ilECSConnector.php';
5 include_once
'./Services/WebServices/ECS/classes/class.ilECSConnectorException.php';
32 $this->path_postfix =
'/campusconnect/course_members/'. (int) $course_member_id;
34 if($a_details and $course_member_id)
36 $this->path_postfix .=
'/details';
45 $this->
addHeader(
'Accept',
'application/json');
49 #$this->addHeader('Accept', 'text/uri-list');
51 $this->curl->setOpt(CURLOPT_HTTPHEADER, $this->
getHeader());
54 if(substr(
$res, 0, 4) ==
'http')
56 $json = file_get_contents(
$res);
68 include_once
'./Services/WebServices/ECS/classes/class.ilECSEContentDetails.php';
71 $details->loadFromJson($ecs_result->getResult());
75 return $ecs_result->getResult();