Skip to main content

CDR Search

This service is used to retrieve information from the quick search section, and its main difference with Quick Search is the ability to search based on the cuid parameter.

Parameters

DescriptionDefined DataSample DataRequired[**]/Logical[*]Parameters
---conditions->from
---conditions->to
---conditions->cuid
Retrieve reports from date-2020-06-15 15:16**date_range->from
Retrieve reports until date-2022-06-22 15:16**date_range->to
--0pagination->start
--20pagination->count
---pagination->sorting
Find similar itemstrue/falsetrue**alike

Sample Invocation

Show Full Source Code PHP

	<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'http://192.168.51.20/api/v4/reports/cdr/search',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"conditions":{"from": "562", "to": "09365018573", "cuid":"1624340875.75933"},
"date_range":{"from":"2020-06-15 15:16","to":"2022-06-22 15:16"},
"pagination":{"start":0,"count":20,"sorting":{}},
"alike":"true"
}',
CURLOPT_HTTPHEADER => array(
'X-APIKEY: 9UV0BWKRL83PYIH9Gv1fI85d41lO4S932EeX3wHC47sHjMJOMG',
'Authorization: Basic c2FkcjpTYWRyQDEyMw==',
'Content-Type: application/json'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>