API documentation
Kemas Kini Domain Hubungis
API ini boleh mengubah maklumat kenalan bagi domain
Content-Type
application-json
kategori
domain
tindakan
change_contact
Parameter permintaan
| Nama parameter | Jenis | Huraikan | Contoh |
|---|---|---|---|
| domain | Rentetan (3-60) | Nama domain | example.com |
| name | Rentetan (1-16) | Nama pendaftar | Xiao Ming |
| organization | Rentetan (1-255) | Nama organisasi / syarikat | XXX Ltd. |
| address | Rentetan (1-255) | Alamat surat-menyurat | BeiJing |
| country | Rentetan (1-255) | Kod Negara, seperti CN | CN |
| state | Rentetan (1-255) | Wilayah / negeri | BeiJing |
| city | Rentetan (1-255) | Singkatan bandar | BJ |
| postcode | Integer (6) | 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=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"
}
Hasil Pulangan
0 OK
Respons berjaya
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 Permintaan tidak sah
{
"code": 400,
"msg" : "Request parameter error",
}






