API documentation
??????????? ???servers
?????? ??????????? ????? ????? nameserver ????? ?? ??????
??? ?????
application-json
?????????
domain
??????
change_dns
?????????? ???????
| ??? ??????? | ??? | ????? | ????? |
|---|---|---|---|
| domain | ???? (3-60) | ??? ????? | example.com |
| dns1 | ???? | ?????? nameserver ???? | ns1.my-ndns.com |
| dns2 | ???? | ?????? nameserver ?????? | ns2.my-ndns.com |
| ... | ???? | DNS ?????? ????? ?? ? ??? | nsX.my-ndns.com |
????? ???????
{
curl https://api.nicenic.net/v2/?category=domain&action=change_dns&domain={domain}&dns1={dns1}&dns2={dns2}&...={...}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
????? ??????
0 OK
???? ???????????
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 ??????? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






