class Namecheap::Domains
Public Instance Methods
Checks the availability of domains. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:check
# File lib/namecheap/domains.rb, line 38 def check(domains = [], options = {}) if domains.respond_to?(:join) domains = domains.join(',') end options = {:DomainList => domains}.merge(options) get 'domains.check', options end
Registers a domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:create
# File lib/namecheap/domains.rb, line 18 def create(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.create', options end
Gets contact information for the requested domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:getcontacts
# File lib/namecheap/domains.rb, line 11 def get_contacts(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.getContacts', options end
Returns information about the requested domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:getinfo
# File lib/namecheap/domains.rb, line 77 def get_info(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.getInfo', options end
Returns a list of domains for the particular user. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:getlist
# File lib/namecheap/domains.rb, line 5 def get_list(options = {}) get 'domains.getList', options end
Gets the status of RegistrarLock for the requested domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:getregistrarlock
# File lib/namecheap/domains.rb, line 63 def get_registrar_lock(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.getRegistrarLock', options end
Returns a list of tlds. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:gettldlist
# File lib/namecheap/domains.rb, line 25 def get_tld_list(options = {}) get 'domains.getTldList', options end
Reactivates an expired domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:reactivate
# File lib/namecheap/domains.rb, line 49 def reactivate(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.reactivate', options end
Renews an expiring domain. developer.namecheap.com/docs/doku.php?id=api-reference:domains:renew
# File lib/namecheap/domains.rb, line 56 def renew(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.renew', options end
Sets contact information for the requested domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:setcontacts
# File lib/namecheap/domains.rb, line 31 def set_contacts(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.setContacts', options end
Sets the RegistrarLock status for a domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:domains:setregistrarlock
# File lib/namecheap/domains.rb, line 70 def set_registrar_lock(domain, options = {}) options = {:DomainName => domain}.merge(options) get 'domains.setRegistrarLock', options end