API documentation
Pindahkan Domain In
Operasi ini boleh memindahkan domain name dari registrar lain ke NiceNIC
Content-Type
application-json
kategori
domain
tindakan
transfer
Parameter permintaan
| Nama parameter | Jenis | Huraikan | Contoh |
|---|---|---|---|
| domain | Rentetan (3-60) | Nama domain | example.com |
| authcode | Rentetan | Tahun kod pemindahan domain | Transfer and renew term |
| year | Integer (4) | Tempoh pendaftaran adalah dari 1 hingga 10 tahun, dengan beberapa pengecualian untuk domain tertentu. | 1 |
| dns1 | Pelayan | Nameserver utama | ns3.my-ndns.com |
| dns2 | Pelayan | Nameserver sekunder | ns4.my-ndns.com |
| organization | Rentetan (1-255) | Nama organisasi / syarikat | XXX Ltd. |
| name | Rentetan (1-16) | Nama pendaftar | Xiao Ming |
| country | Rentetan (1-255) | Kod Negara, seperti CN | CN |
| state | Rentetan (1-255) | Wilayah / negeri | BeiJing |
| city | Rentetan (1-255) | Singkatan bandar | BJ |
| address | Rentetan (1-255) | Alamat surat-menyurat | BeiJing |
| postcode | Integer (4-10) | Poskod / Kod Zip | 100000 |
| phone | "." untuk memisahkan nombor (30) | +Kod negara.kod kawasan dan nombor telefon | +86.13800000000 |
| fax | "." untuk memisahkan nombor (30) | +Kod negara.kod kawasan dan nombor faks | +86.13800000000 |
| Alamat e-mel | Alamat e-mel | [email protected] |
Contoh Permintaan
{
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"
}
Hasil Pulangan
201 OK
Respons berjaya
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!",
"data" : {
}
}
400 Permintaan tidak sah
{
"code": 400,
"msg" : "Request parameter error",
}






