We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I try the following python code copied from this site: from yelp.client import Client
MY_API_KEY = 'xxxx'
client = Client(MY_API_KEY) business_response = client.business.get_by_id('yelp-san-francisco')
Then, I have the error "'Client' object has no attribute 'business'". Any idea why the given code doesn't work? Thanks for your help.
The text was updated successfully, but these errors were encountered:
I have the exact same issue.
Sorry, something went wrong.
Finally, I use this solution: url = 'https://api.yelp.com/v3/businesses/search' API_KEY = xxxx headers = {'Authorization': f"Bearer {API_KEY}"} categories = ['french', 'chinese', 'japanese', 'italian', 'indian']
for i, category in enumerate(categories): params = {'location': location, 'limit': 50, 'categories': category} resp = requests.get(url, headers=headers, params=params)
Heh, may want to fork and start something anew, project looks dead to me.
No branches or pull requests
Hello,
I try the following python code copied from this site:
from yelp.client import Client
MY_API_KEY = 'xxxx'
client = Client(MY_API_KEY)
business_response = client.business.get_by_id('yelp-san-francisco')
Then, I have the error "'Client' object has no attribute 'business'".
Any idea why the given code doesn't work?
Thanks for your help.
The text was updated successfully, but these errors were encountered: