อัปเดตข้อมูลผู้ติดต่อโดเมน
API นี้สามารถแก้ไขข้อมูลผู้ติดต่อของโดเมนได้
Content-Type
application/json
หมวดหมู่
domain
action
change_contact
พารามิเตอร์คำขอ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|
| domain | String (3-60) | ชื่อโดเมน | example.com |
| name | String (1-16) | ชื่อผู้จดทะเบียน | Xiao Ming |
| organization | String (1-255) | ชื่อองค์กร / บริษัท | XXX Ltd. |
| address | String (1-255) | ที่อยู่สำหรับส่งจดหมาย | BeiJing |
| country | String (1-255) | รหัสประเทศ เช่น CN | CN |
| state | String (1-255) | จังหวัด / รัฐ | BeiJing |
| city | String (1-255) | อักษรย่อเมือง | BJ |
| postcode | Integer (6) | รหัสไปรษณีย์ / รหัสไปรษณีย์ | 100000 |
| phone | "." to separate numbers (30) | +รหัสประเทศ.รหัสเขตและหมายเลขโทรศัพท์ | +86.13800000000 |
| fax | "." to separate numbers (30) | +รหัสประเทศ.รหัสเขตและหมายเลขโทรสาร | +86.13800000000 |
| Email address | Email address | [email protected] |
ตัวอย่างคำขอ
{
curl https://api.nicenic.net/v2/?category=domain&action=change_contact&domain={domain}&name={name}&organization={organization}&address={address}&country={country}&state={state}&city={city}&postcode={postcode}&phone={phone}&fax={fax}&email={email}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
ผลลัพธ์ที่ส่งกลับ
0 OK การตอบกลับที่สำเร็จ
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 คำขอไม่ถูกต้อง
{
"code": 400,
"msg" : "Request parameter error",
}






