NoveroCDR

Description

Retrieve the summarised call data totals for number(s) in the account associated with the current API session.

Parameters

string PeriodThe period of time to use for collating the totals. Available options include:

  • day (default) > Totals for the current day

  • week > Totals for the current week

  • month > Totals for the current month

  • last-month > Totals for the previous month

  • all > Totals for all time

string NumberThe number which the totals should be collated for. For all numbers in the account, omit this parameter.

Request

<?xml version="1.0"?>
<NoveroRequest>
  <Request target="NoveroCDR" name="GetTotals" id="TestRequest">
    <Number>01213691057</Number>
  </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroCDR', 'GetTotals', 'TestRequest');
    $Request->SetData('Number', '01213691057');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroCDR', 'GetTotals', 'TestRequest')
request.setdata('Number', '01213691057')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroCDR', 'GetTotals', 'TestRequest')
request.setdata('Number', '01213691057')
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", "GetTotals", "TestRequest");
        request.setData("Number", "01213691057");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
  <Response target="NoveroCDR" name="GetTotals" Code="200" RequestId="TestRequest">
    <CDRTotals Number="01213691057" Period="day">
      <AnsweredTotal>0</AnsweredTotal>
      <MinsTotal>0 secs</MinsTotal>
      <MinsTotalNoFormat>0</MinsTotalNoFormat>
      <MissedTotal>0</MissedTotal>
      <VoicemailTotal>0</VoicemailTotal>
      <AvgLength>0 secs</AvgLength>
      <ChargeTotal>0.00</ChargeTotal>
      <AvgCost>0.00</AvgCost>
    </CDRTotals>
  </Response>
</NoveroResponse>