Methods

Objects

CDR

Call History

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

    Get inbound or outbound CDRs

    Method

    Objects

    • CDR.In
    • CDR.Out
    $from = 'YYYY-MM-DD HH:MM:SS';
    $to = 'YYYY-MM-DD HH:MM:SS';
    
    $result = $api->call('cdr.get', ['OUT', $from, $to, null, null]);
    
    var from = 'YYYY-MM-DD HH:MM:SS';
    var to = 'YYYY-MM-DD HH:MM:SS';
    
    api.call('cdr.get', 'OUT', from, to, null, null).success(function(result) {
        //
    });
    
    from = 'YYYY-MM-DD HH:MM:SS'
    to = 'YYYY-MM-DD HH:MM:SS'
    
    result = api.call('cdr.get', 'OUT', from, to, nil, nil)
    
    from = 'YYYY-MM-DD HH:MM:SS'
    to = 'YYYY-MM-DD HH:MM:SS'
    
    result = api.call('cdr.get', 'OUT', from, to, None, None)