search/Get a candidates not returning all the custom fields using V3

20 views
Skip to first unread message

Ahsan Hussain

unread,
Sep 29, 2016, 1:57:22 PM9/29/16
to CATS API
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)
 
]);
}








Aaron Baluczynski

unread,
Sep 29, 2016, 2:16:23 PM9/29/16
to CATS API
Please post your API v3 questions on the v3 forum. Thanks.
Reply all
Reply to author
Forward
0 new messages