Skip to content

Commit

Permalink
Adding check_transfer shortcut from @shawnsi
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Borgstrom committed May 16, 2012
1 parent c3500c4 commit c4a1aa4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion opensrs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ def data_to_dt_array(elm, list):
else:
raise OpenSRSHTTPException("Status returned from POST was not 200")


def name_suggest(self, query, tlds=[".COM", ".NET", ".ORG", ".INFO", ".BIZ", ".US", ".MOBI"]):
"""
Shortcut for the name_suggest function
Expand All @@ -285,6 +284,14 @@ def name_suggest(self, query, tlds=[".COM", ".NET", ".ORG", ".INFO", ".BIZ", ".U
"tlds": tlds,
})

def check_transfer(self, domain_name):
"""
Shortcut to check transfer status of a domain.
"""
return self.post("check_transfer", "domain", {
"domain": domain_name,
})

def balance(self):
"""
Shortcut to get the balance.
Expand Down

0 comments on commit c4a1aa4

Please sign in to comment.