Register participant

Before we proceed to register participant, it is important to check if room registration is on. You can turn it on using editConference method.

Prepare all the data required to create conference as follows:

1
2
3
4
5
6
7
$params = array(
    'registration' => array(
        1 => 'John',
        2 => 'Dee',
        3 => 'example@domain.com',
    ),
);
1
2
3
4
5
6
7
params = {
    'registration' => {
        1 => 'John',
        2 => 'Dee',
        3 => 'example@domain.com'
    }
}
1
2
3
4
5
6
7
params = {
    'registration' : {
        1 : 'John',
        2 : 'Dee',
        3 : 'example@domain.com'
    }
}

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

1
2
3
4
5
6
try {
    $registration = $client->addConferenceRegistration($room_id, $params);
} catch (Exception $e) {
    // handle exceptions here
}
$url = $registration->url;
1
2
3
4
5
6
begin
    registration = client.addConferenceRegistration(room_id, params)
rescue ClickMeeting::ClientError => e
    # handle exceptions here
end
url = registration['url']
1
2
3
4
5
6
try:
    registration = client.addConferenceRegistration(room_id, params)
except Exception, e:
    # handle exceptions here
url = registration['url']

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