- Raise
HTTPError
if one occurs (PR #25).
- Implemented new
close()
method to close therequests.Session
object we use for performant API interactions. This can also be used as a context manager (this is the preferred way).- Clarified
README.md
to make it clear that the user should always be sure to close the connection.
- Clarified
- Dropping EOL Python versions, adding newly-supported versions.
- Updating dependencies in
requirements.txt
. - Updating project URL (moved from @gfairchild's personal namespace to @lanl's namespace).
match_type
parameter for the business match endpoint was deprecated on April 1, 2019 (see Yelp's changelog). (courtesy @davebulaval)- Added a check to ensure a required parameter,
address1
, is provided when using the business match endpoint. (courtesy @davebulaval) - Support for Python versions <3.4 is removed (i.e., this no longer works with Python 2.7). This is due to some dependencies that also have abandoned Python 2 support.
- Provided a means to set timeouts to API calls. (courtesy @goodspark)
- Added unit tests, including Travis CI automation. (courtesy @goodspark)
- Add better top-level documentation for
YelpAPI
. - To avoid wasting API calls on obviously invalid requests, consistently check for parameters required for requests to succeed.
- Fix a few minor inconsistencies in the code.
- Revised to remove token/secret access and instead use API keys. Yelp will move to API keys only in March 2018. (courtesy @tamos)
- An API key is now needed to instantiate a
YelpAPI
object. (courtesy @tamos) - Added support for 3 new endpoints:
business_match_query
no longer assumes the country is the U.S. if the country code is missing.
- Implement new Business Match API.
NOTE: This API is currently in beta. Yelp requires your app join the Yelp Developer Beta Program to gain access to it.
- Remove reliance on
ez_setup.py
. - Add
setup.cfg
to instruct the build process to build universal wheels.
- Implement the new Yelp Fusion API (aka Yelp v3 API). Note that yelpapi v1.4 is the last version to support the Yelp v2 API. The Yelp v2 API is being deprecated, so all new developers should move to the new Fusion API ASAP.
- Use OAuth 2.0 for authentication.
- Implement new Transaction Search API, Reviews API, and Autocomplete API.
- Use HTTPS for all API calls.
- Use new string formatter.
- Remove
YelpError
since the business API now returns a JSON error when given a bad business ID.
- Adding support for the Phone Search API.
- yelpapi is now fully Python 3+ compliant.
- Transitioning from using python-oauth2 and requests to just using requests-oauthlib.
- Moving to setuptools (using ez_setup.py to manage it).
- Initial release.