Skip to content

Commit

Permalink
Update to new v1 endpoint
Browse files Browse the repository at this point in the history
We're moving to a versioned API endpoint. Thanks!
  • Loading branch information
case committed Apr 7, 2015
1 parent ca6bfee commit 4504fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domainr/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def environment(self):
def search(self, env):
"""Use domainr to get information about domain names."""
if env.info:
url = "https://domainr.com/api/json/info"
url = "https://api.domainr.com/v1/info"
else:
url = "https://domainr.com/api/json/search"
url = "https://api.domainr.com/v1/search"
query = " ".join(env.query)
json_data = requests.get(url, params={'q': query, 'client_id': 'python_zachwill'})
data = self.parse(json_data.content, env)
Expand Down

0 comments on commit 4504fbe

Please sign in to comment.