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

Mettre à jour les informations de contact d'un domaine

Cet article a été traduit automatiquement.

Mettre à jour les informations de contact d'un domaine

Cette commande est utilisée pour obtenir le contact d'un domaine sous votre compte.

APPEL

POST - /domains/{domain}/contact

Paramètres de la requête

Nom Type Requis ? Description
domaine texte Oui Nom de domaine

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

[

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

]

billing

[

firstname => texte,
lastname => texte,
fullname => texte,
companyname => texte,
email => texte,
address1 => texte,
address2 => texte,
city => texte,
state => texte,
zipcode => texte,
country => texte,
phonenumber => 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 à ajouter ou à mettre à jour

Exemple de demande pour le code EPP

endpoint ="https://my.nabtech.co/modules/addons/DomainsReseller/api/index.php";
$action = "/domains/example.com/contact";
$params [
    "domain"    => "example.com",
    "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…