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
    $filters = (object) [
        'from' => 'YYYY-MM-DD HH:MM:SS',
        'to'   => 'YYYY-MM-DD HH:MM:SS',
        'type' => 'OUT'
    ];
    
    $result = $api->call('cdr.export_async', [ $filters, null ]);
    
    var filters = {
        from: 'YYYY-MM-DD HH:MM:SS',
        to:   'YYYY-MM-DD HH:MM:SS',
        type: 'OUT'
    }
    
    api.call('cdr.export_async', filters, null).success(function(result) {
        //
    });
    
    filters = {
        :from => 'YYYY-MM-DD HH:MM:SS',
        :to   => 'YYYY-MM-DD HH:MM:SS',
        :type => 'OUT'
    }
    
    result = api.call('cdr.export_async', filters, nil)
    
    filters = {
        'from': 'YYYY-MM-DD HH:MM:SS',
        'to'  : 'YYYY-MM-DD HH:MM:SS',
        'type': 'OUT'
    }
    
    result = api.call('cdr.export_async', filters, None)