[AdamsNames]

Home
Register
Payment
Edit
Whois
Clients
Bulk
Forms

The XMLRPC API: common documentation

URLs

The XMLRPC server lives at http://www.adamsnames.com/api/xmlrpc.

Error messages

We try to be consistent in our error messages: we always return an error array which is empty if no errors occurred. Each error is represented by a two-element array of error code and description. Perl programmers will recognize this idiom:

      return { error => [ [ 300, 'Invalid request'          ],
                           [ 400, 'Duplicated nameservers'   ], 
                           [ 500, 'World exploded'           ], ] };
  

Error handling always seems to be a messy topic. The split between error code and message is designed to make it easier for clients to handle errors appropriately: to that end we hope that clients will be able to treat the message as an opaque piece of text using the code for any conditional tests. If you find that your clients are parsing the message, then please contact us.

As may be noted above, error codes fall into classes:

Code Description
30xInsufficient permissions supplied.
31x Error in the `shape' of data supplied. For example, a hash was supplied instead of a string, or extraneous keys were supplied in a hash.
32xInvalid data. Although the shape of the data was correct, the data themselves were invalid in some way.
4xx Comments on the data. These can sometimes be ignored: typically they relate to extraneous resource records, or missing glue. A better plan would be to log these messages and examine them once in while.
5xx Fatal internal errors. In the best tradition of error messages these shouldn't occur. If you see one please let us know.

Identifiers

Every object in our registry has a unique, persistent, identifier (ID). The ID is created randomly when the object is first registered and remains unchanged thereafter: this makes the IDs a useful way to refer to objects.

IDs are a fairly random string of letters and digits, and sometimes look rather too much like a domain name. For example, the identifier for the adamsnames.tc domain is ada4404.tc.

Procedure list

At present, the following procedures exist, though it is likely that many more will be implemented shortly. If you have a particular need for a procedure, or suggestions for improvements to existing ones then please contact us.

Procedure Description Arguments Return hash keys
domquery Query a domain's existence and data domain_name, expand error, domain, found
domreg Register a new domain domain_details, terms error, id
domedit Update a domain's details domain_name, update_hash, credentials error
domdel Delete a domain domain_name, credentials error
conquery Query a contact's existence and data contact_id, expand error, contact, found
conreg Register a new contact contact_details error, id
conedit Update a contact's details contact_id, update_hash, credentials error

AdamsNames Limited is registered as a Company in England and Wales.
Registration Number: 3714632, VAT Registration Number: GB 731 9129 38.
Registered Office: Reg'd Office: 9 Quy Court, Colliers Lane, Stow-cum-Quy, Cambridge, CB25 9AU, UK
The Webmaster
URL: http://www.adamsnames.com//api/xmlrpc-doc/common.html
Last modified: Thu Mar 22 11:37:15 2007