[AdamsNames]

Home
Register
Payment
Edit
Whois
Clients
Bulk
Forms

conreg($data) : Contact registration

This is almost constructable from the domreg and conedit procedures, or at least we hope it is. Perhaps the only twist is that terms and conditions need not be supplied.

Arguments to conreg()
ArgumentDescription
contact data
Key Description
name Contact's name
address Contact's address: line breaks should be encoded with the two character sequence '\', 'n'
email Contact's email address
phone Contact's phone number
fax Contact's fax number
cc Contact's ISO country code
password Contact's password
Hash returned by conreg()
Hash KeyDescription
error An array of error messages which may include:
CodeDescription
300Insufficient credentials for edit
310Invalid argument format
320Invalid contact details
321Guardian not found
322Country not valid
400Updates modified before edit
500Fatal error in query
510Fatal error in query
id The contact's identifier

Example

Request

conreg({ 'name'     => 'AN test user 408121',
         'address'  => 'Cambridge', 
         'cc'       => 'uk', 
         'email'    => 'test@adamsnames.tc',
         'password' => 'abcdef817495',   })
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
  <methodName>conreg</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>password</name>
            <value><string>abcdef817495</string></value>
          </member>
          <member>
            <name>cc</name>
            <value><string>uk</string></value>
          </member>
          <member>
            <name>email</name>
            <value><string>test@adamsnames.tc</string></value>
          </member>
          <member>
            <name>address</name>
            <value><string>Cambridge</string></value>
          </member>
          <member>
            <name>name</name>
            <value><string>AN test user 408121</string></value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

Return

{
  'error' => [],
  'id' => 'adams717f'
}
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>error</name>
            <value>
              <array><data/></array>
            </value>
          </member>
          <member>
            <name>id</name>
            <value><string>adams717f</string></value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodResponse>

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/conreg.html
Last modified: Thu Apr 29 13:05:01 2004