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

pricing_filter doesn't work #35

Closed
enwei-canonical opened this issue Aug 16, 2016 · 3 comments
Closed

pricing_filter doesn't work #35

enwei-canonical opened this issue Aug 16, 2016 · 3 comments

Comments

@enwei-canonical
Copy link

curl --get --include 'https://api.yelp.com/v3/businesses/search?pricing_filter=1&latitude=37.7869&limit=40&locale=en_US&longitude=-122.4000&offset=0' -H 'Authorization:Bearer '
HTTP/1.1 200 OK
Date: Tue, 16 Aug 2016 02:20:48 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 25462
Connection: keep-alive
Set-Cookie: __cfduid=d037183bd6aa06545f447b3c9d8acddb81471314044; expires=Wed, 16-Aug-17 02:20:44 GMT; path=/; domain=.yelp.com; HttpOnly
X-Proxied: 10-64-0-235-uswest1aprod
X-Nginx-Frontend: api
Server: cloudflare-nginx
CF-RAY: 2d3168ac12fb45fc-TPE

{"total": 32792, "businesses": [{"name": "T-We Tea", "url": "https://www.yelp.com/biz/t-we-tea-san-francisco", "coordinates": {"latitude": 37.789574, "longitude": -122.402784}, "image_url": "http://s3-media2.fl.yelpcdn.com/bphoto/sdtJq7aMdlpaU8Sgwl8Xuw/o.jpg", "categories": [{"alias": "tea", "title": "Tea Rooms"}, {"alias": "coffee", "title": "Coffee & Tea"}], "price": "$$", "location": {"zip_code": "94104", "city": "San Francisco", "country": "US", "address2": "50 Post St Level 1", "address3": "", "address1": "Crocker Galleria", "state": "CA"}, "id": "t-we-tea-san-francisco", "rating": 5.0, "phone": "+14155002097", "review_count": 81}, {"name": "Tadu Ethiopian Kitchen", "url": "https://www.yelp.com/biz/tadu-ethiopian-kitchen-san-francisco-3", "coordinates": {"latitude": 37.7847934, "longitude": -122.4141884}, "image_url": "http://s3-media3.fl.yelpcdn.com/bphoto/EapkmG5rpJuy7u8tu01GYA/o.jpg", "categories": [{"alias": "ethiopian", "title": "Ethiopian"}], "price": "$$", "location": {"zip_code": "94102", "city": "San Francisco", "country": "US", "address2": "", "address3": "", "address1": "484 Ellis St", "state": "CA"}, "id": "tadu-ethiopian-kitchen-san-francisco-3", "rating": 4.5, "phone": "+14154096649", "review_count": 336},

The result is the same with that of without pricing_filter. Thanks.

@tomelm
Copy link
Contributor

tomelm commented Aug 17, 2016

Looking into this

@tomelm
Copy link
Contributor

tomelm commented Aug 23, 2016

Hey @enwei-canonical, I think this might've been because our documentation was wrong. The parameter should've been called price_filter instead of pricing_filter. We've recently renamed this parameter though (#42), could you try using price?

@tomelm
Copy link
Contributor

tomelm commented Aug 31, 2016

Closing this, things look like they're working on my side

@tomelm tomelm closed this as completed Aug 31, 2016
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