HTTP GET API

URL

https://calldrip.colynk.com/wapi/calldata.php

Acceptable Parameters

  • 'apikey’
  • ‘fromDate’
  • 'toDate’
  • ‘username'
  • ‘password'

The returning result will be in JSON format. You will receive either a success or it will tell you the reason for the failure.

GET Example

https://calldrip.colynk.com/wapi/calldata.php?username=user&password=pass&fromDate=2015-12-01&toDate=2016-01-20&returnType=json&apikey=0jkdjk48932jkndkjdjk3289okjd821d

Example Using cURL


$url = “https://calldrip.colynk.com/wapi/calldata.php”;
$get_params = ‘apikey=’.$apikey.’&fromDate=’.$sdate.’&toDate=’.$edate.’&username=’.$uname.’&password=’.$pass.’&returnType=’.$returntype;
$final_url = $url.’?’.$get_params;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $final_url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
$result = curl_exec($ch);
curl_close($ch);

JSON Return Example

{“id”:”602211″,
“source”:”Website”,
“status”:”ANSWER”,
“date”:”2016-01-05″,
“time”:”12:46:29″,
“firstName”:”John”,
“lastName”:”Doe”,
“email”:”john@no-reply.com”,
“phone”:”1111111111″,
“callNotes”:”Your notes go here”,
“callAttempts”:”1″,
“callDuration”:”400″,
“callRecording”:”https://calldrip.colynk.com/calldrip/dealrec.php?rec=JohnDoe1452015990.0“,
“agent”:”Jane Doe”,
“responseTime”:”14″}

XML Return Example