Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchAPIRequest for raw_name is not working #12

Closed
linuxchip opened this issue Sep 22, 2017 · 0 comments
Closed

SearchAPIRequest for raw_name is not working #12

linuxchip opened this issue Sep 22, 2017 · 0 comments

Comments

@linuxchip
Copy link

I am always getting response as empty

Below is the code for reference

from piplapis.search import SearchAPIRequest
from piplapis.data import Person, Name, Address, Job
from piplapis.search import SearchAPIError

request = SearchAPIRequest(raw_name=u'Bill Gates', api_key='zzzzz') // Not working

OR

request = SearchAPIRequest(first_name=u'Bill', last_name=u'Gates', api_key='ZZZZ') // Not working

try:
response = request.send()
except SearchAPIError as e:
print e.http_status_code, e

print(response.name)
print(response.gender)
print(response.education)
print(response.username)
print(response.address)

Anything wrong ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants