Τομέας API - Εγγραφή Domain API - ICANN Καταχωρητής API - White Label Τομέας Service

Start Building with NiceNIC Τομέας API v2

API access is free fή every active NiceNIC user. Όχι reseller upgrade is required. Configure σας API credentials, make a safe test request, then add the τομέας, DNS, billing, compliance ή WHMCS wήkflows σας application needs.

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 Boolean 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" : []
}
Πνευματικά Δικαιώματα © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Όλα τα δικαιώματα διατηρούνται.