Documentation de l'API de revendeur de domaine 53 Récemment mis à jour 3 min de lecture

Transférer un domaine

Cet article a été traduit automatiquement.

Transférer un domaine

L'action de transfert est utilisée pour envoyer une commande de transfert au registraire.

APPELER

POST - /order/domains/transfer 

Paramètres de la requête

Nom Type Requis ? Description
domaine texte Oui Nom de domaine
eppcode texte Oui Code EPP du domaine à transférer
regperiod numérique Oui Période d'enregistrement
addons [ idprotection => numérique ] tableau Non Active la gestion DNS, le transfert d'e-mail et/ou la protection d'identité pour ce domaine

serveurs de noms

  [

texte, #serveurnom1
texte, #serveurnom2
texte, #serveurnom3
texte, #serveurnom4
texte, #serveurnom5

]

tableau Oui serveurnom1 et serveurnom2 sont requis. serveurnom3, serveurnom4, serveurnom5 sont optionnels

contacts

[

registrant

[

firstname => texte,
lastname => texte,
fullname => texte,
companyname => texte,
email => texte,
address1 => texte,
address2 => texte,
city => texte,
state => texte,
zipcode => texte,
country => texte,
phonenumber => texte

],

tech

[

prenom => texte,
nom => texte,
nom_complet => texte,
nom_entreprise => texte,
email => texte,
adresse1 => texte,
adresse2 => texte,
ville => texte,
état => texte,
code_postal => texte,
pays => texte,
numéro_de_téléphone => texte

]

facturation

[

prenom => texte,
nom => texte,
nom_complet => texte,
nom_entreprise => texte,
email => texte,
adresse1 => texte,
adresse2 => texte,
ville => texte,
état => texte,
code_postal => texte,
pays => texte,
numéro_de_téléphone => texte

]

admin

[

prenom => texte,
nom => texte,
nom_complet => texte,
nom_entreprise => texte,
email => texte,
adresse1 => texte,
adresse2 => texte,
ville => texte,
état => texte,
code_postal => texte,
pays => texte,
numéro_de_téléphone => texte

]

tableau Oui Détails de contact

Exemple de demande de transfert de domaine

endpoint ="https://my.nabtech.co/modules/addons/DomainsReseller/api/index.php";
$action = "/order/domains/transfer";
$params [
    "domain"    => "example.com",    
    "eppcode"    => "123GJE4",
    "regperiod" => "1",
     "nameservers" => [
      "ns5.nabtechonlineng.net",
      "ns6.nabtechonlineng.net",
      ],

    "contacts"  => [
        “registrant” => [
        "firstname" => "james",
        "lastname" => "andrew",
        "fullname" => "james andrew",
        "companyname"  => "jamescompany",
        "email"  => "[email protected]",
        "address1"  => "76 Osaru st",
        "address2"  => "",
        "city"  => "Ben",
        "state"  => "Benin",
        "zipcode"  => "300251",
        "country"  => "Nigeria",
        "phonenumber" => "+234.812343459"
      ],
      “tech” => [
        "firstname" => "james",
        "lastname" => "andrew",
        "fullname" => "james andrew",
        "companyname"  => "jamescompany",
        "email"  => "[email protected]",
        "address1"  => "76 Osaru st",
        "address2"  => "",
        "city"  => "Ben",
        "state"  => "Benin",
        "zipcode"  => "300251",
        "country"  => "Nigeria",
        "phonenumber" => "+234.812343459"
      ],
      “billing” => [
        "firstname" => "james",
        "lastname" => "andrew",
        "fullname" => "james andrew",
        "companyname"  => "Jamescompany",
        "email"  => "[email protected]",
        "address1"  => "76 Osaru st",
        "address2"  => "",
        "city"  => "Ben",
        "state"  => "Benin",
        "zipcode"  => "300251",
        "country"  => "Nigeria",
        "phonenumber" => "+234.812343459"
      ],
      “admin” => [
        "firstname" => "james",
        "lastname" => "andrew",
        "fullname" => "james andrew",
        "companyname"  => "jamescompany",
        "email"  => "[email protected]",
        "address1"  => "76 Osaru st"",
        "address2"  => "",
        "city"  => "Ben",
        "state"  => "Benin",
        "zipcode"  => "300251",
        "country"  => "Nigeria",
        "phonenumber" => "+234.812343459"
      ],
      ],


];

$headers = [

    "nom d'utilisateur: [email protected]",

    "token: ". base64_encode(hash_hmac("sha256", "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", "[email protected]:".gmdate("y-m-d H")))

];


$curl = curl_init();

curl_setopt($curl, CURLOPT_URL, "{$endpoint}{$action}");

curl_setopt($curl, CURLOPT_POST, true);

curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params));

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);

curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);


$response = curl_exec($curl);

curl_close($curl);

Discussion

Chargement de la discussion…