API documentation
???????? ??????? In
??? ?????????????? ????? ? ????? ???????? ???????? ?????? ??? ????????????? NiceNIC
Content-Type
application-json
?????????
domain
?????????????
transfer
??????????? ???????
| ???????? ????? | ????? | ?????????????? | ?????? |
|---|---|---|---|
| domain | ??? (3-60) | Domain ????? | example.com |
| authcode | ??? | ???????? ????????? ???? ????? | Transfer and renew term |
| year | ???????? ??? (4) | ???????? ??????? ????????? ? 1-?? 10 ????? ???? ????????????????? ???? ??????????? ?????? | 1 |
| dns1 | ?????? | ????????? ????? ?????? | ns3.my-ndns.com |
| dns2 | ?????? | ??????????? ?????? | ns4.my-ndns.com |
| organization | ??? (1-255) | ??????????????? / ??????????? ???????? | XXX Ltd. |
| name | ??? (1-16) | ???????? ????? | Xiao Ming |
| country | ??? (1-255) | ????? ???, ??????? CN | CN |
| state | ??? (1-255) | ???? / ?????????? | BeiJing |
| city | ??? (1-255) | ?????? ???? | BJ |
| address | ??? (1-255) | ???????? ????? | BeiJing |
| postcode | ???????? ??? (4-10) | ???????? ?????? / ??? ??? | 100000 |
| phone | ?.?` ????? ????????? ????? (30) | +????? ???.????? ??? ? ????????????? | +86.13800000000 |
| fax | ?.?` ????? ????????? ????? (30) | +????? ???, ????????? ??? ? ????? ????? | +86.13800000000 |
| ???????????? ????? | ???????????? ????? | [email protected] |
??????? ???????
{
curl https://api.nicenic.net/v2/?category=domain&action=transfer&domain={domain}&authcode={authcode}&year={year}&dns1={dns1}&dns2={dns2}&organization={organization}&name={name}&country={country}&state={state}&city={city}&address={address}&postcode={postcode}&phone={phone}&fax={fax}&email={email}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
??????????? ?????????
201 OK
????? ????????
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!",
"data" : {
}
}
400 ??? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






