API documentation
Olu?tur Child Adserver
Kaydet a new DNS server fveya use with a specific domain
Content-Type
application-json
kategori
nameserverhost
i?lem
add
?stek parametreleri
| Parametre Ad? | Tür | A??klama | ?rnek |
|---|---|---|---|
| domain | String | Alan ad? | example.com |
| dns | String (3-30) | DNS server name (must match domain) | ns1.example.com |
| ip | String | DNS server IP address | 192.168.1.1 |
Yan?t parametreleri
| Parametre Ad? | Tür | A??klama |
|---|---|---|
| dns | String | DNS server name |
| ip | String | DNS server IP address |
?stek ?rne?i
{
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"
}
D?nü? sonucu
0 OK
Ba?ar?l? yan?t
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 Hatal? ?stek
{
"code": 400,
"msg" : "Request parameter error",
}






