7 users online | 7 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 (4579 views)
  2. Display Domain Contact (1697 views)
  3. Web Interface Screenshots (1591 views)
  4. WHMCS Registrar Module (1065 views)
  5. Renew Domain (909 views)
  6. Edit Domain Contact (836 views)
  7. Domain Registration (713 views)
  8. List Domains (674 views)
  9. Domain Transfer (668 views)
  10. Update Nameservers (632 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)