Get DID Call Logs
SOAP API
URL:
http://www.virtualphoneline.com/webservice/CFMSGetCallLogs.php
- Method: GetCallLogs(UserID, Pass, DIDNumber)
-
UserID: Numeric Account ID or the email address
registered with sandbox.virtualphoneline.com
- Pass: MD5 Encrypted Password
- DIDNumber: The DID number to fetch logs for
- Return Type: Struct
- Return Values:
-
On successful authentication, returns an array with the
following fields:
- DIDNumber
- Caller ID
- RingToType
-
Example Code: For fetching call logs of a DID number
-
$parameters=array("000000",md5("ae762636272ff276236"),1567232323);
-
$soapclient = new
soapclient('http://sandbox.virtualphoneline.com/webservice/CFMSGetCallLogs.php');
-
$SoapResult = $soapclient->call("GetCallLogs",
$parameters, 'urn:GetCallLogs');
- print_r($SoapResult);
REST API
URL:
https://api.virtualphoneline.com/vplapi/callLogs.php?UID=301197
-
Request Parameters:
- UID - The unique User ID
- Caller ID - Number calling
- CalledNum - Number being called
- Disposition - Call status (e.g., "ANSWER")
- CallStart - Call start date and time
-
Response:
- {"callerid": "3199394195"
- "callednum": "13604880317"
- "disposition": "ANSWER"
- "callstart": "2005-02-27 03:04:08"}
|