candidates/search
Searches an existent candidates in idibu v3. The result format will be a json string email, phone_mobile, phone, limit, offset, comms_status
Parameters:
name- search by candidate nameemail- search by emailphone_mobile- search by emailphone- search by emailcomms_status- search bycomms_status. Possible values are:unknown,applied,unsubscribedlimit- set results limit, by default equals to:10offset- set offset , by default equals to:0
$idibuAPIEndpoint = 'https://v3.idibu.com/c/oauth/v1';
$accessToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$data = [
'method' => 'candidates/search',
'name' => 'test'
];
$ch = curl_init($idibuAPIEndpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $accessToken,
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
$response = curl_exec($ch);
curl_close($ch);