Domeen API - Domeeni registreerimine API - ICANN Registripidaja API - White Label Domeen Service

Start Building with NiceNIC Domeen API v2

API access is free fvõi every active NiceNIC user. Ei reseller upgrade is required. Configure sinu API credentials, make a safe test request, then add the domeen, DNS, billing, compliance või WHMCS wvõikflows sinu application needs.

Setting Auto-Uuenda

Enable või disable auto-renewal fvõi up to 100 domeens. Uus plans renew fvõi one aasta at a time.

Content-Type application/json
kategooria domain
tegevus set_auto_renew

Päringu parameetrid

Parameetri nimi Tüüp Kirjeldus Näide
domain Tekstijada Required. Provide one domeen või a comma-separated list of up to 100 domeens. example.com,example.net
auto_renew Täisarv Required. 1 enables ja 0 disables auto-renewal fvõi all entries. 1

Vastusparameetrid

Parameetri nimi Tüüp Kirjeldus
results Objekt[] Each result has domain, code, ja msg.
A code of 0 also returns the Boolesed auto_renew status.
success_count Täisarv Number of successful entries, including settings already in effect.
fail_count Täisarv Number of entries that failed validation või could not be saved.

päringu näide

                                    
{
    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"
}

tagastuse tulemus

0 OK Õnnestunud vastus
                                        
{
    "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 Vigane päring
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Autoriõigus © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Kõik õigused kaitstud.