API documentation
ย้ายโดเมน In
การดำเนินการนี้สามารถโอนย้ายโดเมนจากผู้รับจดทะเบียนรายอื่นมายัง NiceNIC
Content-Type
application-json
หมวดหมู่
domain
การทำงาน
transfer
พารามิเตอร์คำขอ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|
| domain | สตริง (3-60) | ชื่อโดเมน | example.com |
| authcode | สตริง | ปีรหัสโอนย้ายโดเมน | Transfer and renew term |
| year | จำนวนเต็ม (4) | ระยะเวลาจดทะเบียนอยู่ระหว่าง 1 ถึง 10 ปี โดยมีข้อยกเว้นสำหรับบางโดเมน | 1 |
| dns1 | เซิร์ฟเวอร์ | Nameserver หลัก | ns3.my-ndns.com |
| dns2 | เซิร์ฟเวอร์ | Nameserver สำรอง | 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",
}






