Fetching Companies Data via API

Forum for users and developers of Bullhorn's new REST API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
vipultandon
User
Posts: 3
Joined: Mon Jan 21, 2019 6:32 am

Fetching Companies Data via API

Post by vipultandon » Mon Jan 21, 2019 8:50 am

Hello Bullhorn Support,

I am trying to fetch Companies data from BH.
When trying via PHP-Curl it doesn't returns any value but when run on Postman it returns data.

Below is the code,
API URL is: https://rest40.bullhornstaffing.com/res ... &count=100

$ch = curl_init($api_url);
$headers = array('Content-Type: application/json');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE );
curl_setopt($ch, CURLOPT_HEADER, 0);

Please have a look and share your thoughts.

mfinleybh
User
Posts: 13
Joined: Thu Feb 21, 2019 9:48 am

Re: Fetching Companies Data via API

Post by mfinleybh » Mon Mar 11, 2019 3:43 pm

Greetings ,

Troubleshooting Curl-PHP is outside of the scope of the Bullhorn Support Team. I would suggest utilizing the forum search tool to find similar Curl related poses. We do have several Curl programmers on this forum, who may also be able to assist you.

In the meantime, if you have any REST or SOAP based requests, we will be happy to render assistance.

-Matt

Post Reply