Setting Auto-Rinovo
Enable ose disable auto-renewal fose up to 100 domains. I ri plans renew fose one vit at a time.
Lloji i përmbajtjes
application/json
kategori
domain
veprim
set_auto_renew
Parametrat e kërkesës
| Emri i parametrave | Lloji | Përshkrim | Shembull |
|---|---|---|---|
| domain | Varës | Required. Provide one domain ose a comma-separated list of up to 100 domains. | example.com,example.net |
| auto_renew | Numër i plotë | Required. 1 enables dhe 0 disables auto-renewal fose all entries. | 1 |
Parametrat e përgjigjes
| Emri i parametrave | Lloji | Përshkrim |
|---|---|---|
| results | Objekti[] |
Each result has domain, code, dhe msg.A code of 0 also returns the Booleane auto_renew status.
|
| success_count | Numër i plotë | Numri of successful entries, including settings already in effect. |
| fail_count | Numër i plotë | Numri of entries that failed validation ose could not be saved. |
Shembull kërkese
{
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"
}
Kthe rezultatin
0 OK
Përgjigje e suksesshme
{
"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 Kërkesë e gabuar
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






