Method for Getting Call logs List
This method returns the list of 100 records of Call logs per page in the form of an array. The user is required to give User ID, Password, DID Number, Date (ie: 2010-02-11), Order (ie: asc,desc ) and Page as arguments and he’ll get a list of 100 recent calls history.
User can supply DID Number to 100 records of Call logs per page. If there is no Date is defined, then it will get current date, if there is no Order, then it will show Ascending order of records.
Method Signature
CallerID ($UserID, $Password, $DID, $Date, $Order, $Page)
Example Usage
We are providing a sample code in PHPthat accesses and uses this service.
<?php
require_once “nusoap.php”;
$parameters=array(“715017″,”xxxxxxx”,”15672323232″,”2010-02-17″,”desc”,”0”);
$soapclient= new soapclientnusoap(‘http://api.didx.net/webservice/CallerID.php’);
$SoapResult = $soapclient->call(“CallerID”, $parameters,’urn:CallerID’);
?>
The first two arguments passed to the method are user ID and password. The third argument represents the DID Number. The fourth argument represents the Date. The fifth argument represents the Order. The sixth argument represents the Page.
Fields Returned:
RingTo
CallerID
CalledNumber
Trunck
Disposition
BillSeconds
BillCost
CallStart
OrderID
CallerIDName
UniqueID
FromIP
TotalMinutes
TalkTimeWas
TalkTimeCut
TalkTImeRemain
MinutesTotalUsed
CallStartFormated
SystemBox
Error Codes
In case of any incorrect information provided by the user or in case of no matching data, an error code will be returned. Error codes correspond to the following messages:
-1 = User ID does not exist.
-2 = In valid DID Number.
-3 = There are no Record found.
-4 = Invalid order requested to show.