Setting Auto-I-renew
Enable o disable auto-renewal fo up to 100 domains. Bago plans renew fo one taon at a time.
Content-Type
application/json
kategorya
domain
aksyon
set_auto_renew
Mga parameter ng request
| Pangalan ng parameter | Uri | Paglalarawan | Halimbawa |
|---|---|---|---|
| domain | String | Required. Provide one domain o a comma-separated list of up to 100 domains. | example.com,example.net |
| auto_renew | Integer | Required. 1 enables at 0 disables auto-renewal fo all entries. | 1 |
Mga parameter ng tugon
| Pangalan ng parameter | Uri | Paglalarawan |
|---|---|---|
| results | Bagay[] |
Each result has domain, code, at msg.A code of 0 also returns the Boolean auto_renew status.
|
| success_count | Integer | Numero of successful entries, including settings already in effect. |
| fail_count | Integer | Numero of entries that failed validation o could not be saved. |
Halimbawa ng Request
{
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"
}
Resulta ng Return
0 OK
Matagumpay na tugon
{
"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 Hindi wastong kahilingan
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






