Unable to get job order via the rest api

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
JohnGalt
User
Posts: 2
Joined: Mon Dec 10, 2018 4:03 pm

Unable to get job order via the rest api

Post by JohnGalt » Tue Dec 11, 2018 12:01 pm

Hello,
We have created a couple of job orders in the bullhorn platform.
In postman, I have acquired the OAuth token.

When searching for the jobrder via the API, I get the following error in postman (In the screenshot, I have cropped the token...it is sending the full token correctly). What am I doing wrong? Since I am getting a "No data", I am unable to tell whether this is because it is not finding the data OR because there is some other issue.
Attachments
Untitled.png
Untitled.png (51.7 KiB) Viewed 3147 times

DanJSupport
User
Posts: 46
Joined: Mon Aug 15, 2016 9:57 am

Re: Unable to get job order via the rest api

Post by DanJSupport » Fri Dec 21, 2018 11:24 am

Hi John,

Before you can make calls into Bullhorn you will need to use the access token to generate a BhRestToken.

This documentation explains the authorization process: http://bullhorn.github.io/Getting-Started-with-REST/

Your call is also missing the corp token. When making the call to obtain the BhRestToken you will be provided with the correct endpoint for the corp you are accessing. Your call will then be something like this:

Code: Select all

https://rest91.bullhornstaffing.com/rest-services/{corp_token}/search/JobOrder?fields=*&query=title:nurse&BhRestToken={BhRestToken}
Dan Johnson
Tier 2 / Enterprise Support
Bullhorn Support US: 617-478-9126
Bullhorn Support UK: 44 800 032 2848
Bullhorn Support Australia: 61 28 073 5089
Bullhorn Support International: 617-478-9131

Post Reply