I used the searchRecords to get the vendors data based on the criteria specified below.However I do not get any result with the below code.Any help would be appreciated.
<?php
class Zoho {
private $token = 'f701c306a8d717e4d987efc7ccfb2712';
public $responseType = 'xml';
public function searchRecords()
{
$result = $this->curlRequest($url);
return $result;
}
public function curlRequest($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}
}
$zoho = new Zoho;
$data = $zoho->searchRecords();
print_r($data);
?>