Methods

Objects

CONFERENCING

Powerful conferencing

Summary

    API init

    require 'vendor/autoload.php'; // Composer
    
    $api = new \CALLR\API\Client;
    $api->setAuth(new \CALLR\API\Authentication\LoginPasswordAuth('login', 'password'));
    
    var callr = require('callr');
    var api = new callr.api(callr.loginPasswordAuth('login', 'password'));
    
    require 'callr'
    api = CALLR::Api.new('login', 'password')
    
    import callr
    api = callr.Api("login", "password")
    
            

    Create a conference room

    Method

    Objects

    • CONFERENCE10
    • CONFERENCE10.Room.Access
    $params = new stdClass;
    $params->open = true;
    
    $access = [];
    
    $result = $api->call('conference/10.create_room', ['room name', $params, $access]);
    
    var params = { open: true };
    var access = [];
    
    api.call('conference/10.create_room', 'room name', params, access).success(function(result) {
        //
    });
    
    params = { :open => true }
    access = []
    
    result = api.call('conference/10.create_room', 'room name', params, access)
    
    params = { 'open': True }
    access = []
    
    result = api.call('conference/10.create_room', 'room name', params, access)
    
            

    Assign a DID to a room

    $result = $api->call('conference/10.assign_did', ['Room ID', 'DID ID']);
    
    api.call('conference/10.assign_did', 'Room ID', 'DID ID');
    
    result = api.call('conference/10.assign_did', 'Room ID', 'DID ID')
    
    result = api.call('conference/10.assign_did', 'Room ID', 'DID ID')
    
            

    Create a PIN protected conference room

    Method

    Objects

    • CONFERENCE10
    • CONFERENCE10.Room.Access
    $params = new stdClass;
    $params->open = true;
    
    $access = [
        (object)['pin' => '1234', 'level' => 'GUEST'],
        (object)['pin' => '4321', 'level' => 'ADMIN', 'phone_number' => '+447890123456']
    ];
    
    $result = $api->call('conference/10.create_room', ['room name', $params, $access]);
    
    var params = { open: true };
    var access = [
        { pin: '1234', level: 'GUEST' },
        { pin: '4321', level: 'ADMIN', phone_number: '+447890123456' }
    ];
    
    api.call('conference/10.create_room', 'room name', params, access).success(function(result) {
        //
    });
    
    params = { :open => true }
    access = [
        { :pin => '1234', :level => 'GUEST' },
        { :pin => '4321', :level => 'ADMIN', :phone_number => '+447890123456' }
    ]
    
    result = api.call('conference/10.create_room', 'room name', params, access)
    
    params = { 'open': True }
    access = [
        { 'pin': '1234', 'level': 'GUEST' },
        { 'pin': '4321', 'level': 'ADMIN', 'phone_number': '+447890123456' }
    ]
    
    result = api.call('conference/10.create_room', 'room name', params, access)
    
            

    Call a room access

    $result = $api->call('conference/10.call_room_access', ['Room Access ID', 'BLOCKED', true]);
    
    api.call('conference/10.call_room_access', 'Room Access ID', 'BLOCKED', true).success(function(result) {
        //
    });
    
    result = api.call('conference/10.call_room_access', 'Room Access ID', 'BLOCKED', true)
    
    result = api.call('conference/10.call_room_access', 'Room Access ID', 'BLOCKED', True)