API documentation
?? Child ??server
?? a new DNS server f?? use with a specific ???
Content-Type
application-json
????
nameserverhost
??
add
?? ????
| ???? ?? | ?? | ?? | ?? |
|---|---|---|---|
| domain | ??? | ??? ?? | example.com |
| dns | ??? (3-30) | DNS server name (must match ???) | ns1.example.com |
| ip | ??? | DNS server IP address | 192.168.1.1 |
?? ????
| ???? ?? | ?? | ?? |
|---|---|---|
| dns | ??? | DNS server name |
| ip | ??? | DNS server IP address |
?? ??
{
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",
}






