Mettre à jour les contacts du domaine
Cette API peut modifier les informations de contact d'un domaine
Content-Type
application/json
catégorie
domain
action
change_contact
Paramètres de requête
| Nom du paramètre | Type | Description | Exemple |
|---|---|---|---|
| domain | String (3-60) | Nom de domaine | example.com |
| name | String (1-16) | Nom du titulaire | Xiao Ming |
| organization | String (1-255) | Nom de l’organisation / de l’entreprise | XXX Ltd. |
| address | String (1-255) | Adresse postale | BeiJing |
| country | String (1-255) | Code du pays, par exemple CN | CN |
| state | String (1-255) | Province / État | BeiJing |
| city | String (1-255) | Acronyme de la ville | BJ |
| postcode | Integer (6) | Code postal / Code ZIP | 100000 |
| phone | "." to separate numbers (30) | +Indicatif du pays, indicatif régional et numéro de téléphone | +86.13800000000 |
| fax | "." to separate numbers (30) | +Indicatif du pays, indicatif régional et numéro de fax | +86.13800000000 |
| Email address | Email address | [email protected] |
Exemple de requête
{
curl https://api.nicenic.net/v2/?category=domain&action=change_contact&domain={domain}&name={name}&organization={organization}&address={address}&country={country}&state={state}&city={city}&postcode={postcode}&phone={phone}&fax={fax}&email={email}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Résultat renvoyé
0 OK Réponse réussie
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 Requête incorrecte
{
"code": 400,
"msg" : "Request parameter error",
}






