דומיין API - רישום תחום 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.

צור שרת שמות ילד

הרשמה a new DNS server fאו use with a specific דומיין

Content-Type application/json
קטגוריה nameserverhost
פעולה add

פרמטרי בקשה

שם פרמטר סוג תיאור דוגמה
domain מחרוזת שם דומיין example.com
dns מחרוזת (3-30) שם שרת DNS (חייב להתאים לדומיין) ns1.example.com
ip מחרוזת כתובת IP של שרת DNS 192.168.1.1

פרמטרי תגובה

שם פרמטר סוג תיאור
dns מחרוזת שם שרת DNS
ip מחרוזת כתובת IP של שרת DNS

דוגמת בקשה

                                    
{
    curl https://api.nicenic.net/v2/?category=nameserverhost&action=add&domain={domain}&dns={dns}&ip={ip} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

תוצאת החזרה

0 OK תגובה מוצלחת
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "dns": "ns1.example.com",
            "ip": "192.168.1.1"
        }        
    }
}
400 בקשה שגויה
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
זכויות יוצרים © 2006–2026 חברת NICENIC INTERNATIONAL GROUP CO., LIMITED. כל הזכויות שמורות. · U.S. Affiliate: NICENIC LLC