38 users online | 38 Guests and 0 Registered

Domain Registration


require_once 'inc/jsonRPCClient.php';
$resellAPI = new jsonRPCClient('http://api.resell.al/server.php');

try {

$postfields = array();
$postfields[Username] = "name@webhost.al";
$postfields[Password] = "*****";


/* 
//--------------- REGISTER DOMAIN


$postfields[sld] = "testdomain3";
$postfields[tld] = "al";
$postfields[regperiod] = 1;

$postfields[ns1] = "ns3.titanserver.net";
$postfields[ns2] = "ns4.titanserver.net";
$postfields[ns3] = "";
$postfields[ns4] = "";
$postfields[ns5] = "";



# Registrant Details


$postfields["firstname"]     = "Name";
$postfields["lastname"]      = "Surname";
$postfields["companyname"]   = "WebHost Shpk";

$postfields["address1"]      = "Rr Murat Toptani";
$postfields["address2"]      = "78";
$postfields["city"]          = "Tirana";
$postfields["state"]         = "Tirana";
$postfields["postcode"]      = "1010";
$postfields["country"]       = "AL";
$postfields["email"]         = "info@webhost.al";
$postfields["phonenumber"]   = "+355.68200000";


$result = $resellAPI->RegisterDomain($postfields);


} catch (Exception $e) {
echo nl2br($e->getMessage()).'<br />'."\n";
}
Tags: domain registration
Last update:
2013-10-07 01:16
Author:
admin
Revision:
1.2
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Most popular FAQs RSS

  1. Check Domain (4657 views)
  2. Display Domain Contact (1744 views)
  3. Web Interface Screenshots (1693 views)
  4. WHMCS Registrar Module (1144 views)
  5. Renew Domain (948 views)
  6. Edit Domain Contact (889 views)
  7. Domain Registration (770 views)
  8. List Domains (722 views)
  9. Domain Transfer (716 views)
  10. Update Nameservers (679 views)

Latest FAQs RSS

  1. WHMCS Registrar Module (2013-10-14 19:17)
  2. Web Interface Screenshots (2013-10-07 01:38)
  3. Domain Transfer (2013-10-07 01:17)
  4. Domain Registration (2013-10-07 01:16)
  5. Edit Domain Contact (2013-10-07 01:14)