GetCDRs

Description

Retrieve call data records for the account associated with the current API session.

Parameters

string Number optional

Limit the query to CDRs for the number specified or all numbers within a comma separated list.

int offset optional

The starting offset for the result set. Defaults to 0.

int limit optional

The maximum number of Call Data Records that will be returned in a result set. Defaults to 10.

int LastId optional

The identifier of a previously retrieved call record. The next applicable record will be the first item in the result set.

string StartDate optional

The start date for the query, in the format yyyy-mm-dd.

string EndDate optional

The end date for the query, in the format yyyy-mm-dd.

Request

<?xml version="1.0"?>
<NoveroRequest>
  <Request target="NoveroCDR" name="GetCDRs" id="TestRequest">
    <LastId>106398334</LastId>
    <limit>10</limit>
  </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroCDR', 'GetCDRs', 'TestRequest');
    $Request->SetData('LastId', '106398334');
    $Request->SetData('limit', '10');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroCDR', 'GetCDRs', 'TestRequest')
request.setdata('LastId', '106398334')
request.setdata('limit', '10')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroCDR', 'GetCDRs', 'TestRequest')
request.setdata('LastId', '106398334')
request.setdata('limit', '10')
api.makerequest()
p request.getresponse()
using System;
using TTNCApi;
 
class Program
{
    static void Main(string[] args)
    {
        TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
        TTNCRequest request = api.NewRequest("NoveroCDR", "GetCDRs", "TestRequest");
        request.setData("LastId", "106398334");
        request.setData("limit", "10");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
  <Response target="NoveroCDR" name="GetCDRs" Code="200" RequestId="TestRequest">
    <CDRs>
      <CDR>
        <uid>106398335</uid>
        <ref>51FD5E980233A34F</ref>
        <calldate>2013-08-03</calldate>
        <calltime>20:48:40</calltime>
        <anumber>7921255043</anumber>
        <anumber_location>UK O2 Mobile</anumber_location>
        <bnumber>1245830144</bnumber>
        <alias></alias>
        <dialled>0</dialled>
        <dialled_location>Unknown</dialled_location>
        <duration>0</duration>
        <ring_time>0</ring_time>
        <user_cost>0.000</user_cost>
        <reason>2</reason>
        <reason_q805>0</reason_q805>
        <HasRecordedCall>1</HasRecordedCall>
        <HasVoicemailRecording>0</HasVoicemailRecording>
        <HasFaxDocument>0</HasFaxDocument>
      </CDR>
      <CDR>
        <uid>106398336</uid>
        <ref>51FD5EB00233A3E4</ref>
        <calldate>2013-08-03</calldate>
        <calltime>20:49:04</calltime>
        <anumber>7921255043</anumber>
        <anumber_location>UK O2 Mobile</anumber_location>
        <bnumber>1245830144</bnumber>
        <alias></alias>
        <dialled>0</dialled>
        <dialled_location>Unknown</dialled_location>
        <duration>0</duration>
        <ring_time>0</ring_time>
        <user_cost>0.000</user_cost>
        <reason>2</reason>
        <reason_q805>0</reason_q805>
        <HasRecordedCall>1</HasRecordedCall>
        <HasVoicemailRecording>0</HasVoicemailRecording>
        <HasFaxDocument>0</HasFaxDocument>
      </CDR>
 
      ...
 
    </CDRs>
  </Response>
</NoveroResponse>

Updated 2 years ago

GetCDRs


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.