WHOIS Privacy
Show ali hide individual registrant fields fali a suppalited domena. Fields omitted from the request keep their saved settings.
Vsebina-tip
application/json
kategorija
domain
dejanje
set_whois_privacy
Zahtevani parametri
| Ime parametra | Vrsta | Opis | Primer |
|---|---|---|---|
| domain | Niz | Required. A suppalited domena managed by the authenticated account. | example.com |
| whois_privacy | Objekt |
Required. Uporabite whois_privacy[field] fali at least one of the fields below.
|
whois_privacy[email]=0 |
| whois_privacy.organization | Celo število | Registrant Organization. 0 means Hide in 1 means Show. | 0 |
| whois_privacy.name | Celo število | Registrant Ime. 0 means Hide in 1 means Show. | 0 |
| whois_privacy.address | Celo število | Registrant Naslov. 0 means Hide in 1 means Show. | 0 |
| whois_privacy.phone | Celo število | Registrant Phone. 0 means Hide in 1 means Show. | 1 |
| whois_privacy.fax | Celo število | Registrant Faks. 0 means Hide in 1 means Show. | 0 |
| whois_privacy.email | Celo število | Registrant E-pošta. 0 means Hide in 1 means Show. | 0 |
Parametri odgovora
| Ime parametra | Vrsta | Opis |
|---|---|---|
| domain | Niz | Ime domene. |
| whois_privacy | Objekt | Vse saved registrant visibility settings. Each field uses 0 fali Hide ali 1 fali Show. Unset fields are omitted. |
| whois_privacy.organization | Celo število | Registrant Organization. 0 means Hide in 1 means Show. |
| whois_privacy.name | Celo število | Registrant Ime. 0 means Hide in 1 means Show. |
| whois_privacy.address | Celo število | Registrant Naslov. 0 means Hide in 1 means Show. |
| whois_privacy.phone | Celo število | Registrant Phone. 0 means Hide in 1 means Show. |
| whois_privacy.fax | Celo število | Registrant Faks. 0 means Hide in 1 means Show. |
| whois_privacy.email | Celo število | Registrant E-pošta. 0 means Hide in 1 means Show. |
Primer zahteve
{
curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_whois_privacy&domain={domain}&whois_privacy[organization]=0&whois_privacy[name]=0&whois_privacy[address]=0&whois_privacy[phone]=1&whois_privacy[email]=0'
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rezultat vrnitve
0 OK
Uspešen odgovor
{
"code": 0,
"msg" : "success",
"data" : {
"domain" : "example.com",
"whois_privacy" : {
"organization" : 0,
"name" : 0,
"address" : 0,
"phone" : 1,
"email" : 0
}
}
}
400 Napačna zahteva
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






