Magrehistro ng Domain
Ang pagpaparehistro ng domain name ay ang proseso ng pagreserba ng natatanging pangalan sa Internet sa loob ng isang takdang panahon, karaniwan ay isang taon o higit pa
Content-Type
application/json
kategorya
domain
aksyon
register
Mga parameter ng request
| Pangalan ng parameter | Uri | Paglalarawan | Halimbawa |
|---|---|---|---|
| domain | String (3-60) | Pangalan ng domain | example.com |
| year | Integer (4) | Ang panahon ng pagrerehistro ay mula 1 hanggang 10 taon, na may ilang eksepsyon para sa ilang domain. | 1 |
| dns1 | Server | Pangunahing nameserver | ns3.my-ndns.com |
| dns2 | Server | Pangalawang nameserver | ns4.my-ndns.com |
| organization | String (1-255) | Pangalan ng organisasyon / kumpanya | XXX Ltd. |
| name | String (1-16) | Pangalan ng rehistrante | Xiao Ming |
| country | String (1-255) | Country Code, gaya ng CN | CN |
| state | String (1-255) | Probinsya / Estado | BeiJing |
| city | String (1-255) | Daglat ng lungsod | BJ |
| address | String (1-255) | Mailing address | BeiJing |
| postcode | Integer (4-10) | Postal code / Zip code | 100000 |
| phone | "." para paghiwalayin ang mga numero (30) | +Country code.district code at numero ng telepono | +86.13800000000 |
| fax | "." para paghiwalayin ang mga numero (30) | +Country code.district code at numero ng fax | +86.13800000000 |
| Email address | Email address | [email protected] | |
| contact_source | String (1-255) | Kung itatakda sa miyembro ang pinanggagalingan ng kontak, ang impormasyon ng kontak ay magiging kapareho ng impormasyon ng miyembro, at ang ibang impormasyon ng kontak ay hindi papansinin. | member |
Mga parameter ng tugon
| Pangalan ng parameter | Uri | Paglalarawan |
|---|---|---|
| domain | String | Pangalan ng domain |
| created_date | Petsa | Oras ng pagrerehistro ng domain |
| expired_date | Petsa | Petsa ng pag-expire ng domain |
Halimbawa ng Request
{
curl https://api.nicenic.net/v2/?category=domain&action=register&domain={domain}&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}&contact_source={contact_source}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Resulta ng Return
0 OK
Matagumpay na tugon
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
201 Naka-pending
Naka-pending oder
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
Tandaan: code "201" means the registration oder was submitted successfully at the fee was deducted. Final domain activation is still subject to registry confirmation. Kung the domain cannot be activated, the registration fee will be refunded to iyong account balance within 24 hours.
400 Hindi wastong kahilingan
{
"code": 400,
"msg" : "Request parameter error",
}






