Skip to content

Commit

Permalink
Update to new v1 endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
case committed Apr 7, 2015
1 parent 899b536 commit c2f0c0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions domainr
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ status_color = {

def checkAvailability(domain):

con = HTTPConnection('domainr.com')
req = con.request('GET', '/api/json/info?q=%s&client_id=python_connor' % domain)
con = HTTPConnection('api.domainr.com')
req = con.request('GET', '/v1/info?q=%s&client_id=python_connor' % domain)
res = con.getresponse()

if res.status == 200:
Expand Down Expand Up @@ -100,8 +100,8 @@ def main(args):

print "Looking up domains for %s..." % arg

con = HTTPConnection('domainr.com')
req = con.request('GET', '/api/json/search?q=%s&client_id=python_connor' % arg)
con = HTTPConnection('api.domainr.com')
req = con.request('GET', '/v1/search?q=%s&client_id=python_connor' % arg)
res = con.getresponse()

if res.status == 200:
Expand Down

0 comments on commit c2f0c0f

Please sign in to comment.