GET Access Token Noob question

Tagged:

Currently contains 2 posts

Avatar

February 23, 2015 20:46

JSArrakis

Hello,

I am pretty new to PC Recruiter and am creating an integration with our app. I am attempting to test functionality of GET Access Token here: http://www.pcrecruiter.net/apidocs_v2/#!/access-token/GetAccessToken_get_0

I am attempting to connect to https://www2.pcrecruiter.net/pcr.asp?uid=odbc.Broadlook

Unfortunately I cannot find in the documentation the correct location of the values I am looking for.

Im assuming from the URL string that “Broadlook” is the correct string value for the DatabaseId and the user name and password I need are the same ones to log into that instance of the CRM. I am also assuming the AppId and the ApiKey are the ones provided for me in the API Keys section of the site when I signed up for the API. I am currently leaving the Accept-Language blank.

However when I run the request I am getting response code 0 with no other appended information for the Access Token. And when I input the provided URL string created by the form into a browser I am getting the error “Invalid Api Key or Invalid App Id” even though I am using the Key and Id provided.

Thanks!
Justin

Avatar

February 25, 2015 14:38

Wayne-PCRecruiter

Normally I believe this would have been supplied to you. I will look into why it has not been supplied. Posting on that set of active docs may have some issues as it is in testing and the API it connects to won’t be officially updated until May.

Your databaseId would be:
DatabaseId=Broadlook.BroadLook

A sample(non-URL encoded).

https://www2.pcrecruiter.net/rest/api?username=USERNAMEVALUE&password=PASSWORDVALUE&databaseid=DATABASEIDVALUE&apikey=APIKEYVALUE&appid=APPIDVALUE

If you are still getting an error can you send the URL you are submitting to wayne@mainsequence.net? I will take a look at it from there.

Reply to thread