42 users online | 42 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.