Page 1 of 1

Cadidate search

Posted: Sat Jan 12, 2013 2:10 pm
by enapoleone
I am trying to authenticate and get the ID of our Candidates.

If I do a search in the following way:

https://rest2.bullhornstaffing.com/rest ... sDeleted:0

I get a list of Candidates and all their associated fields.

My first issue is that all usernames are a truncation of our corporate name, an underscore, an integer followed by a colon then another integer i.e. {Corporate_Name}_{integer}:{integer} - seems odd.

Furthermore any attempt to search using the username throws an error:

https://rest2.bullhornstaffing.com/res ... {integer}

Result:

Code: Select all

{
  "errorMessage" : "Bad query: Cannot parse 'isDeleted:0 AND username:TundraTechnic_120412:115889': Encountered \" \":\" \": \"\" at line 1, column 45.\nWas expecting one of:\n    <EOF> \n    <AND> ...\n    <OR> ...\n    <NOT> ...\n    \"+\" ...\n    \"-\" ...\n    \"(\" ...\n    \"*\" ...\n    \"^\" ...\n    <QUOTED> ...\n    <TERM> ...\n    <FUZZY_SLOP> ...\n    <PREFIXTERM> ...\n    <WILDTERM> ...\n    \"[\" ...\n    \"{\" ...\n    <NUMBER> ...\n    "
}
I assume that this is the result of the colon in the username.

If I attempt to take a password out of the first result above and do a search:

https://rest2.bullhornstaffing.com/rest ... ssword:xxx

Result:

Code: Select all

{
  "total" : 0,
  "start" : 0,
  "count" : 0,
  "data" : [ ]
}
Is there any advise anyone can give me. Am I going about this the wrong way?