Hi.
I've been noticing that the catsone
https://api.catsone.com/v3/docs/#candidates-get-a-candidate AND
https://api.catsone.com/v3/docs/#candidates-search-candidates are not sending all the custom fields data. whenever when i try to get the custom field data directly using
https://api.catsone.com/v3/docs/#candidates-get-a-custom-field-value it returns me the data.
i don't why what's going on with the cats api over there but its causing me a real time issue with my client. my code i'm using to get the data from search is below.
Please have a look and let me know what's happing there
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.catsone.com/v3/candidates/search?query=" . $email,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"authorization: Token " . env('CATS_KEY'),
"cache-control: no-cache",
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
return collect([
'status' => false
]);
} else {
return collect([
'status' => true,
'data' => json_decode($response)
]);
}