API documentation
?????? ???? ?????
??????? ???? ???? ????? ? ?????? ????? ?? ?????? ????
??? ?????
application-json
?????????
domain
??????
get_price
?????????? ???????
| ??? ??????? | ??? | ????? | ????? |
|---|---|---|---|
| domain | ???? (3-60) | ??? ????? | example.com |
| type | ???? | ??? ?????: ???? ??????? ?????? ??? | register |
| year | ??? ???? (4) | ??? ???/?????/?????? ?? ?????? ???? (? ?? ?? ???) | 1 |
?????????? ????
| ??? ??????? | ??? | ????? |
|---|---|---|
| domain | ???? | ??? ????? |
| type | ???? | ??? ??? ????? (???/??????/?????) |
| currency | ???? | ??? ??? |
| price | ????? | ???? ???? |
| is_premium | Boolean | ??? ????? ?????? ??? (??? ???? ??? ???) |
????? ???????
{
curl https://api.nicenic.net/v2/?category=domain&action=get_price&domain={domain}&type={type}&year={year}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
????? ??????
0 OK
???? ???????????
{
"code": 0,
"msg" : "success",
"data" : {
[
{
"domain": "example.com",
"type": "register",
"currency": "USD",
"price": 15.99,
"is_premium": false
},
{
"domain": "example.com",
"type": "renew",
"currency": "USD",
"price": 15.99
}
]
}
}
400 ??????? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






