Problem Getting Access Token

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
HireOurHeroes.API
User
Posts: 6
Joined: Tue Jul 01, 2014 5:41 am

Problem Getting Access Token

Post by HireOurHeroes.API » Tue Jul 01, 2014 5:58 am

I just started working with the REST API and are having problems getting an Access Token.

For the first step in I put together a GET request using the following URI:
https://auth.bullhornstaffing.com/oauth ... tate=xxxxx

After executing the GET request above, then I'm redirected to this URL:

http://hireourheroes.org/?code=3%3Aac-7 ... zMUIy.dpbs

Next, I grab out the code (3%3Aac-76ce138e-932f-4e38-af4b-1ae862bd61a7).

In the next next Step "Get an access token" I use this "code" to build the URL. I then preform a POST to:
https://auth.bullhornstaffing.com/oauth ... heroes.org

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/7.0.27

What am I doing wrong here? Please advise. and how to integrate this REST API in to my web site please give the guidance as step wise
Thanks

Sean.Hayes
User
Posts: 10
Joined: Wed Sep 18, 2013 9:19 am

Re: Problem Getting Access Token

Post by Sean.Hayes » Wed Jul 02, 2014 10:28 am

Hello,
Can you send me the full URL's that you are using as it looks like only a little bit of it is showing. I would like to run through this myself and see what might be causing the problem and also how I can get this to work for you.

Please feel free to respond as soon as you can so I can take a look at this issue.

I would also need to know the company you are performing this for and the Client ID and Secret as well.

Thanks for your help in advance.
Sean Hayes | Senior Technical Support Analyst

HireOurHeroes.API
User
Posts: 6
Joined: Tue Jul 01, 2014 5:41 am

Re: Problem Getting Access Token

Post by HireOurHeroes.API » Thu Jul 03, 2014 1:57 am

Hi,
Thank you for u reply Sean Hayes
I would like to integrate bullhorn restapi in to my website
so i'm following the steps as per this link (http://developer.bullhorn.com/articles/getting_started)
For the first step in I put together a GET request using the following URI:(http://hireourheroes.org/?code=3%3Aac-7 ... sfjaW.dpbs)

While getting access token i got the http error,
This is the full url link while to get the access token :(https://auth.bullhornstaffing.com/oauth ... heroes.org)

here i'm using this credentials
client id:2a5e7afc-781a-4b34-9371-6f96f60fce97
client_secret=moMwjRlxIG2qwj31SX9M4JK5Bo6GifTu
Our company url:http://hireourheroes.org/

please don't share this credentials to others

so,please give the guidance to integrate the api into my website as a custom application .

Thanks

Sean.Hayes
User
Posts: 10
Joined: Wed Sep 18, 2013 9:19 am

Re: Problem Getting Access Token

Post by Sean.Hayes » Mon Jul 07, 2014 7:39 pm

Hey,
Can you try downloading an app within Chrome called Postman? This should allow you to do the post function and get the access token.

You can download it within Chrome at the link below:

https://chrome.google.com/webstore/deta ... omcm?hl=en

Let me know if that works for you?
Sean Hayes | Senior Technical Support Analyst

HireOurHeroes.API
User
Posts: 6
Joined: Tue Jul 01, 2014 5:41 am

Re: Problem Getting Access Token

Post by HireOurHeroes.API » Tue Jul 08, 2014 10:03 am

Hi Sean.hayes
We already tried in the google chrome by using the postman extension but we didn't get any access token .so could you elaborate the steps to move forward for integrate api into my website

Thanks

Sean.Hayes
User
Posts: 10
Joined: Wed Sep 18, 2013 9:19 am

Re: Problem Getting Access Token

Post by Sean.Hayes » Thu Jul 10, 2014 7:55 pm

Hello,
I was able to generate an access token and refresh token just fine using the RESTClient within firefox as well as Postman within Google Chrome. I went through the steps below.


client id:2a5e7afc-781a-4b34-9371-6f96f60fce97
client_secret=moMwjRlxIG2qwj31SX9M4JK5Bo6GifTu

1. https://auth.bullhornstaffing.com/oauth ... _type=code

2. This generated a code for me :
http://hireourheroes.org/?code=3%3Aac-3 ... 3eb03bbda6

3. Then I used the other URL within the RESTClient in Firefox:
https://auth.bullhornstaffing.com/oauth ... K5Bo6GifTu

4. Step number 3 requires you to do a Post function with the RESTClient or Postman to generate the refresh token and access token

5. The following information came back to me for this session:

{
"access_token": "3:at-89ff6b28-43c2-446f-adc1-01b17ca1a127^ac-363359fd-5c88-4025-ada7-013eb03bbda6",
"token_type": "Bearer",
"expires_in": 600,
"refresh_token": "3:rt-579e6732-2674-4ae2-bf94-cd7867c471bb^ac-363359fd-5c88-4025-ada7-013eb03bbda6"
}


If this does not work for you let me know and I can contact your company and try to get in touch with you to discuss the issue over the phone. Thanks in advance.
Sean Hayes | Senior Technical Support Analyst

HireOurHeroes.API
User
Posts: 6
Joined: Tue Jul 01, 2014 5:41 am

Re: Problem Getting Access Token

Post by HireOurHeroes.API » Fri Jul 11, 2014 8:53 am

Hi Sean hayes
Thank's for your guidance
I got the refresh access token as per your guidance and we executed the the following steps told by you . as well as i got the session key and corporation token here it is the details:

{
"BhRestToken": "b9230e06-acb3-4e5b-b658-c937a0c90ad2",
"restUrl": "https://rest3.bullhornstaffing.com/rest-services/ossis/"
}

Actually i'm trying to integrate to the BULL HORN REST API in to my website. After getting the session key and corporation token i'm confused to move forward .,so could you tell me the all next step's of integration process as a custom application in to my website
here it is my url: http://www.hireourheroes.org

Thanks

markkeo
User
Posts: 1
Joined: Thu Feb 28, 2019 11:00 pm

Re: Problem Getting Access Token

Post by markkeo » Thu Feb 28, 2019 11:03 pm

HireOurHeroes.API wrote:
Thu Jul 03, 2014 1:57 am
please don't share this credentials to others
This is a public forum, as such these credentials are now public.

RandyBonnette
User
Posts: 1
Joined: Wed Jun 26, 2019 1:40 am

Re: Problem Getting Access Token

Post by RandyBonnette » Wed Jun 26, 2019 1:44 am

Sean.Hayes wrote:
Mon Jul 07, 2014 7:39 pm
Hey,
Can you try downloading an app within Chrome called Postman? This should allow you to do the post function and get the access token.

You can download it within Chrome at the link below:

https://chrome.google.com/webstore/deta ... omcm?hl=enhttps://writemyessaytoday.net/

Let me know if that works for you?
Hi,

I cannot find the official Postman download link. The link you mentioned is not working. I tried to download it from the NationBuilder but my antivirus blocked the process.

mholmemi
User
Posts: 17
Joined: Fri Feb 15, 2019 10:31 am

Re: Problem Getting Access Token

Post by mholmemi » Fri Jun 28, 2019 4:05 pm

Hello,

This is Mikaela from Bullhorn Support. Youl can download the Postman Chrome Extension per http://bullhorn.github.io/Getting-Started-with-REST/

Best,
Mikaela
Mikaela Holme-Miller | Tier II/Enterprise Support Analyst

Post Reply