<?php
$data = array(
    "action"		=> "RegisterDomain",
    "token"             => "AaLc8eNZWsZtWlT9LtT7NUha",
    "authemail"         => "correo@dominio.com",
    "sld"		=> "NOMBREDEDOMINIO",
    "tld"		=> "uy",
    "regperiod"		=> 1,
    "nameserver1"       => "ns1.hostingenlaweb.com",
    "nameserver2"       => "ns2.hostingenlaweb.com",
    "nameserver3"       => "web1.hostingenlaweb.com",
    "nameserver4"       => "web2.hostingenlaweb.com",
    "nameserver5"       => "ns1-pando.hostingenlaweb.com",
    "firstname"         => "NOMBRE",
    "lastname"          => "APELLIDO",
    "companyname"	=> "RAZON SOCIAL",
    "address1"          => "DIRECCION",
    "city"		=> "CIUDAD",
    "state"             => "DEPARTAMENTO",
    "country"           => "PAIS",
    "postcode"          => "11100",
    "phonenumber"	=> "59829010489",
    "email"             => "mail@dominio.com",
    "adminfirstname"	=> "NOMBRE",
    "adminlastname"	=> "APELLIDO",
    "admincompanyname"	=> "RAZON SOCIAL",
    "adminaddress1"	=> "Colonia 1086/902",
    "admincity"		=> "Montevideo",
    "adminstate"	=> "Montevideo",
    "admincountry"	=> "UY",
    "adminpostcode"	=> "11100",
    "adminphonenumber"	=> "59829010489",
    "adminemail"	=> "correo@dominio.com",
    "domainfields"      => base64_encode(serialize(array_values(array())
)));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.hostingenlaweb.com/clientes/domainsResellerAPI/api.php");
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSLVERSION, 3);
curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');
$result = curl_exec($ch);
$res    = json_decode($result, true);
print_r($res);
curl_close($ch);
?>
¿Fue útil la respuesta? 0 Los Usuarios han Encontrado Esto Útil (0 Votos)