API: https://github.com/openmeetings-extras/openmeetings-api-plugin (master
is for 3.1.0, for 3.0.7 please use OM3.0 branch)
example: https://github.com/openmeetings-extras/openmeetings-moodle-plugin

On Thu, Mar 10, 2016 at 4:11 AM, Imbert Samuel <samuel.imb...@gmail.com>
wrote:

> 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
>>
>>
>>
>>


-- 
WBR
Maxim aka solomax

Reply via email to