Search found 7 matches

by newclique
Wed Mar 25, 2020 11:21 am
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#

Excellent. Glad you got it sorted. Postman was essential for me, too.

Good thing about COVID is the recovery rate is 99%! Hang in there :)
by newclique
Tue Mar 24, 2020 11:45 pm
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#

Are you looking at the Request or the Response after you send the request? Remember, the value you want should be in the Response.

If that doesn't work, does it work for you if you use the C# version of the code?

PS VB is like smoking. It will eventually kill you :) lol Just Kidding!
by newclique
Mon Feb 10, 2020 11:06 pm
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#

Just looking at it briefly I'd estimate that you are hitting an endpoint that is causing a redirect but you are not auto-following redirects. Not sure what version of .net you're using but if it's .net core then it possibly has different behavior than the .net standard 4.7 or so that I was using. Yo...
by newclique
Fri Sep 27, 2019 10:59 am
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#.net

Alrighty, scratch all that code above. This is how I am now doing it. There's one class with all the "meat" and then a driver (program.cs) to test it out as a console app. Just replace the class variables with your own keys and credentials. ------------------------ namespace GrabBullhorn { public cl...
by newclique
Mon Apr 08, 2019 4:18 pm
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#

Ugh. My last post had errors due to the API guide not being very clear about needing to use the returned REST_URL from the rest-login call to make all future calls. I'm sure this was obvious to some but the examples that show {corpToken} really threw me because I thought that meant I needed to use t...
by newclique
Mon Apr 08, 2019 3:59 pm
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#

Oops, I left out two final steps. First, you have to get the REST Token (could this API be any more complex?) and the CorpID with yet another login call. Second, you have to use these new pieces of information to try to call the REST services themselves. _tokens = getAccessToken(); if (_tokens != nu...
by newclique
Fri Mar 22, 2019 6:26 pm
Forum: Bullhorn APIs
Topic: Rest API via C#
Replies: 12
Views: 8939

Re: Rest API via C#

Here's how I do it in a console app. Be sure to add the necessary references and Newtonsoft nuget pkg: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Web; using System.IO; using Newtonsoft.Json; names...