Interfacing with eNom’s URL Interface using the Enom.EnomURL COM objectIt is possible to interface with eNom’s URL interface easily using the supplied COM object named Enom.EnomURL in the file URLInterface.dll.Installing the object: Copy the URLInterface.dll file to a directory on the machine you will be using it on, and register it using regsvr32.exe at a DOS prompt in that directory. There are two registry entries in HKEY_LOCAL_MACHINE/SOFTWARE/Enom/URL Interface/, “ServerIP” (the address of the server to connect to) and “ServerURL” (the page to request on the server). We will provide you with the IP of the server you need to connect to. A transaction with the COM object consists of the following:
The Response method obtains values that were returned to the COM object during the transaction with eNom. The eNom server will return a number of name & value pairs. To retrieve one, use the following syntax: Value = (obj name).Response( Name ) To see if there were any errors, check the “ErrCount” value. If this value is 0, the command completed successfully. Otherwise, retrieve each error string. These are stored in values named “Err” plus the error number. So if there was one error, you would get the error string by doing the following: ErrString = (obj name).Response( “Err1” ) To retrieve the RRP status from the operation (if no errors occurred) get the following values:
Check If Domain Name Available - Required parameters:
Method: Check
You can use the Check command to check .com .net and .org all at the same time for a given SLD. Specify “*” for the TLD and all top level domains will be checked. In response you will get: (where <x> is a number from 1 to 3)
Purchase Domain Name - Required parameters:
You need to specify what name server(s) will serve your domain. You can either use eNom name servers by setting this property to “eNom”: UseDNS = “eNom” Or you can specify your own name servers by calling this function (maximum of 12 name servers): AddNameServer( NameServer) The following properties are optional:
Method: Purchase If there were no errors and RRPCode was 200, then the domain name was registered. Otherwise, there was an error (most likely the name was already registered). Email Forwarding - Required parameters:
Email addresses to forward are required. Use this method to add them (maximum of 5 email addresses): AddEmail( Email, ForwardToEmail ) Method: ForwardEmail URL Forwarding - Required parameters:
Method: SetPageURL Getting the Result of a Previous Operation - Required parameters:
Set the Reference property to a unique value before running any command through the COM object. You can get the RRPCode and RRPText values from the command at a later time by setting the Reference property to the same value as before and calling the GetResult method. Set Domain Password - Required parameters:
Method: SetDomainPassword( NewPassword, AccessLevel ) AccessLevel can be either 0 or 1. 1 means all access, 0 means restricted access. Getting Your Balance If you set the property GetBalance to 1 before performing any of the above operations, your balance will be returned in the value named “Balance”. Field Lengths * in Table below indicates either Registrant, Tech, Admin, or Aux.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
About Us | Contact Us | Help | Careers | Services | News | Pricing | Maintenance | Press Releases | Whois | Site Map
Copyright © 1998-2010 eNom Inc. All rights reserved. Terms & Conditions | Privacy Policy