Setting Auto-חידוש
Enable או disable auto-renewal fאו up to 100 דומייןs. חדש plans renew fאו one שנה at a time.
Content-Type
application/json
קטגוריה
domain
פעולה
set_auto_renew
פרמטרי בקשה
| שם פרמטר | סוג | תיאור | דוגמה |
|---|---|---|---|
| domain | מחרוזת | Required. Provide one דומיין או a comma-separated list of up to 100 דומייןs. | example.com,example.net |
| auto_renew | מספר שלם | Required. 1 enables ו 0 disables auto-renewal fאו all entries. | 1 |
פרמטרי תגובה
| שם פרמטר | סוג | תיאור |
|---|---|---|
| results | אובייקט[] |
Each result has domain, code, ו msg.A code of 0 also returns the בוליאני auto_renew status.
|
| success_count | מספר שלם | מספר of successful entries, including settings already in effect. |
| fail_count | מספר שלם | מספר of entries that failed validation או could not be saved. |
דוגמת בקשה
{
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"
}
תוצאת החזרה
0 OK
תגובה מוצלחת
{
"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 בקשה שגויה
{
"code": 400,
"msg" : "Request parameter error",
"data" : []
}






