API documentation
Krijo Child Em?rserver
Regjistro a new DNS server fose use with a specific domain
Lloji i p?rmbajtjes
application-json
kategori
nameserverhost
veprim
add
Parametrat e k?rkes?s
| Emri i parametrave | Lloji | P?rshkrim | Shembull |
|---|---|---|---|
| domain | Var?s | Emri i domain-it | example.com |
| dns | Var?s (3-30) | DNS server name (must match domain) | ns1.example.com |
| ip | Var?s | DNS server IP address | 192.168.1.1 |
Parametrat e p?rgjigjes
| Emri i parametrave | Lloji | P?rshkrim |
|---|---|---|
| dns | Var?s | DNS server name |
| ip | Var?s | DNS server IP address |
Shembull k?rkese
{
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"
}
Kthe rezultatin
0 OK
P?rgjigje e suksesshme
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 K?rkes? e gabuar
{
"code": 400,
"msg" : "Request parameter error",
}






