Create conference

Before we proceed to the list of parameters required for creating a new room, it is important to highlight that there are two types of rooms: time scheduled and permanent. The number of available room types depends on the type of ClickMeeting account you have.

Prepare all the data required to create conference as follows:

1
2
3
4
5
6
$params = array(
    'name' => 'test_room',
    'room_type' => 'meeting',
    'permanent_room' => 0,
    'access_type' => 1
);
1
2
3
4
5
6
params = {
    'name' => 'test_room',
    'room_type' => 'meeting',
    'permanent_room' => 0,
    'access_type' => 1
}
1
2
3
4
5
6
params = {
    'name': 'test_room',
    'room_type': 'meeting',
    'permanent_room': 0,
    'access_type': 1
}

Now simply send request using the addConference method.
Retrieving the room ID number is very simple and can be done as presented below.

1
2
3
4
5
6
7
try {
    $room = $client->addConference($params);
} catch (Exception $e) {
    // handle exceptions here
}
$room_id = $room->room->id;

1
2
3
4
5
6
7
begin
    conference = client.addConference(params)
    room_id = conference['room']['id']
rescue ClickMeeting::ClientError => e
    # handle exceptions here
end
room_id = room['room']['id']
1
2
3
4
5
6
7
try:
    room = client.addConference(params)
    room_id = room['room']['id']
except Exception, e:
    # handle exceptions here
room_id = room['room']['id']

You can find all the structures’ descriptions in the API Function Reference manual.