In moodle plugin (PHP) :
moodle/mod/openmeetings/api/openmeetings_gateway.php

//create the room
$url = $this->getRestUrl("RoomService") .
'addRoomWithModerationAndExternalType?SID=' . $this->session_id . '&name='
. urlencode($openmeetings->roomname) . '&roomtypes_id=' .
$openmeetings->type . '&comment=' . urlencode('Created by SOAP-Gateway') .
'&numberOfPartizipants=' . $openmeetings->max_user . '&ispublic=false' .
'&appointment=false' . '&isDemoRoom=false' . '&demoTime=0' .
'&isModeratedRoom=' . $isModeratedRoom . '&externalRoomType=' .
urlencode($this->config["moduleKey"]);
$result = $restService->call($url, "return");//$result contain the new room
id

//update with more parameters
$url2 = $this->getRestUrl("RoomService") .
'updateRoomWithModerationQuestionsAudioTypeAndHideOptions?SID=' .
$this->session_id . '&room_id='.$result.'&name=' .
urlencode($openmeetings->roomname) . '&roomtypes_id=' . $openmeetings->type
. '&comment=' . urlencode('Created by SOAP-Gateway') .
'&numberOfPartizipants=' . $openmeetings->max_user . '&ispublic=false' .
'&appointment=false' . '&isDemoRoom=false' . '&demoTime=0' .
'&isModeratedRoom=' . $isModeratedRoom .
'&allowUserQuestions=true&isAudioOnly=false&hideTopBar=false&hideChat=false&hideActivitiesAndActions=true&hideFilesExplorer=false&hideActionsMenu=false&hideScreenSharing=false&hideWhiteboard=true';

$result2 = $restService->call($url2, "return");



Le mer. 9 mars 2016 à 22:37, Openmeetings <jacob.nav...@free.fr> a écrit :

>
> Hello,
>
> Is it possible to create a conference room with REST. It is not clear in
> the
> documentation. If yes, does someone have an example ?
>
> Thank you
>
>
>
>

Reply via email to