I'm testing out the Fullcontact API to retrieve information about specific people. If the person that I'm looking up with their API doesn't exist in their database it would return a 404 Not found error. I'm trying to get around that by retrieving other usernames, but it's not working. Here's the code:
person = FullContact.person(email: 'wilson@wilsontest.com')
if person.to_i > 400
person = FullContact.person(email: 'wilsonp@gmail.com')
else
person = FullContact.person(email: 'wilson@wilsontest.com')
end
p person
This still displays the 404 Not found when the email isn't found.