Domainshare
Gem for .tk DomainShare API. Basically the (pretty messy) domainshare lib code. Help me refactoring if you like ;-)
You can find the original code at http://www.nic.tk/en/domainsharelibs.html
Installation
Add this line to your application's Gemfile:
gem 'domainshare'
And then execute:
$ bundle
Or install it yourself as:
$ gem install domainshare
Usage
Test connection
conn = DSCLIENT::API.new(username, password)
puts conn.ping()
Register a domain:
puts conn.register({"domainname" => "sld",
"enduseremail" => "[email protected]",
"nameserver" => ["ns1.example.com", "ns2.example.com"] })
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request