API documentation
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) | Makipag-ugnayan source, if set to member, contact infomation will be the same as member infomation, at other contact infomation will be ignoed | 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":"skwncks.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
400 Hindi wastong kahilingan
{
"code": 400,
"msg" : "Request parameter error",
}






