Sha256: a1b1d28a9bf364f1501decdbb7588e094fbdf2c3e54d9b1ff318b75457501a1f

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

eNom domain reseller API wrapper
================================

Based on documentation found in:
http://resellertest.enom.com/resellers/newdocumentation.asp

Example
-------

    require 'ruby-enom'

    # Configure RubyEnom with your company's specifics
    RubyEnom::COMMANDS_DEFAULT_OPTIONS.merge!({
      :purchase => {
        :NS1                        => 'ns1.example.com',
        :NS2                        => 'ns2.example.com',
        :NumYears                   => 2,
        :RegistrantOrganizationName => 'Example Corp.',
        :RegistrantAddress1         => 'Your address',
        :RegistrantCity             => 'City name',
        :RegistrantPostalCode       => 93000,
        :RegistrantCountry          => 'US',
        :RegistrantEmailAddress     => 'youremail@example.com',
        :RegistrantPhone            => '555',
        :RegistrantFax              => '555'
      }
    })

    enom = RubyEnom::Connection.new('username', 'password', 'http://resellertest.enom.com/interface.asp')
    if enom.domain_available?("example.com")
      resp = enom.purchase(:sld => "example", :tld => "com")
      if resp.has_errors?
        puts "Errors while trying to purchase domain 'example.com': #{resp.errors.join(', ')}"
      end
    end

Check the source and eNom's documentation on commands. This wrapper is easily extensible.

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 vendor/plugins/ruby-enom/README.markdown
smukherjee-openbill-0.1.6 vendor/plugins/ruby-enom/README.markdown
smukherjee-openbill-0.1.7 vendor/plugins/ruby-enom/README.markdown
openbill-0.1.5 vendor/plugins/ruby-enom/README.markdown
openbill-0.1.6 vendor/plugins/ruby-enom/README.markdown