candidates/list
Returns filtered candidates list
Available filters:
status- filter candidates by status name (New, Rejected, Shortlist..)phone- filter candidates by phone numberphone_mobile- filter candidates by mobile phone number
Example:
Restful call php curl:
$idibuAPIEndpoint = 'https://v3.idibu.com/c/oauth/v1';
$accessToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$params = [
'method' => 'candidates/list'
];
$idibuAPIEndpoint .= '?' . http_build_query($params);
$ch = curl_init($idibuAPIEndpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $access_token,
]);
$response = curl_exec($ch);
curl_close($ch);
Restful call from Raw PHP:
$data = $WU_API->sendMessageToWU( 'candidates/list', [] );
var_export( $data );
Restful call from JS API:
var data = wu.sendMessageToWU( 'candidates/list'. {phone: '+1 234-567-89'} );
console.log( data ); //output to firebug console
Restful call from Interaction API
$data = \WU_API::apiCall( 'candidates/list', array( 'phone_mobile' => '+44 55 66 77 88' ) );
\WU_API::debug( $data ); //output to firebug console