Retrieve Entity and Personal Data

Forum for users and developers of Bullhorn's Webservices API suite

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
xreason
User
Posts: 1
Joined: Sat Dec 01, 2012 6:42 pm

Retrieve Entity and Personal Data

Post by xreason » Sat Dec 01, 2012 6:45 pm

Hi,

I'm using the API with PHP and I don't know how get the Entity of the user and the personal data like email, address and so on. I'm connecting to the API like this:

$params = array('trace' => 1,'soap_version' => SOAP_1_1);
$BHclient = new SoapClient("https://api.bullhornstaffing.com/webser ... l",$params);

$username = $_POST['username'];
$password = $_POST['password'];
$apiKey = "apikey";

$session_request = new stdClass();
$session_request->username = $username;
$session_request->password = $password;
$session_request->apiKey = $apiKey;
$API_session = $BHclient->startSession($session_request);
$API_currentSession = $API_session->return;

Now how I can get the entity and data of this user ? I don't found the solution on website

Thanks

c.choy
User
Posts: 49
Joined: Wed Dec 31, 1969 8:00 pm

Re: Retrieve Entity and Personal Data

Post by c.choy » Tue Dec 04, 2012 10:59 am

Hi,

So I'm not sure about which entity that you're looking for. Is it a corporate user that you're trying to find? Perhaps a candidate? If you could specify I can run you through the steps to get the various fields. Ultimately though, they follow the same steps:

Get the id number for the entity you're looking for: (you can use the Query command to help narrow that down)
Using the Find command, you'll be able to pull back the record (dto) for the entity

Let me know what type of record you're trying to grab data off of and we can go from there.

Post Reply