Access tokens

If the attribute access_type is set to 3 in for the specific event, you can generate access tokens for meeting or webinar participants. Access token usage could be a form for paid access to your meetings or webinars. You can sell the access token via CRM or email marketing platforms.

Access token generation

Start with preparing the necessary parameter:

1
2
3
$params = array(
    'how_many' => 10
);
1
2
3
params = {
    "how_many" => 2
}
1
2
3
params = {
    "how_many" : 2
}

Now simply send request using the conferenceGenerateTokens method.
Retrieving the conference tokens can be done as presented below.

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

Retrieving tokens

We can download the list of generated tokens for the particular conference as follows:

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

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