Setting Auto-Podaljšaj
Enable ali disable auto-renewal fali up to 100 domenas. Novo plans renew fali one leto at a time.
Vsebina-tip
application/json
kategorija
domain
dejanje
set_auto_renew
Zahtevani parametri
| Ime parametra | Vrsta | Opis | Primer |
|---|---|---|---|
| domain | Niz | Required. Provide one domena ali a comma-separated list of up to 100 domenas. | example.com,example.net |
| auto_renew | Celo število | Required. 1 enables in 0 disables auto-renewal fali all entries. | 1 |
Parametri odgovora
| Ime parametra | Vrsta | Opis |
|---|---|---|
| results | Objekt[] |
Each result has domain, code, in msg.A code of 0 also returns the Boolean auto_renew status.
|
| success_count | Celo število | Številka of successful entries, including settings already in effect. |
| fail_count | Celo število | Številka of entries that failed validation ali could not be saved. |
Primer zahteve
{
curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_auto_renew&domain={domain}&auto_renew=1'
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rezultat vrnitve
0 OK
Uspešen odgovor
{
"code": 0,
"msg" : "success",
"data" : {
"results" : [
{
"domain" : "example.com",
"code" : 0,
"msg" : "success",
"auto_renew" : true
},
{
"domain" : "example.net",
"code" : 404,
"msg" : "Domain not found"
}
],
"success_count" : 1,
"fail_count" : 1
}
}
400 Napačna zahteva
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






