趣域网在线客服

你可以点击在线客服即时联系我们,与我们的客服代表咨询!
趣域网在线客服

7x24 访问

如果你已经注册帐户,你可以通过这里登陆管理产品以及咨询我们客服代表。
客户中心

常见问题

在知识库查找你的问题,为您找到一个解决方案。请你给客户支持提交一票。
API 命令操作

RegisterDomain:

该命令用于向趣域网请求注册域名操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
regperiod 数字 注册年限
nameserver1 字符串 域名服务器1
nameserver2 字符串 域名服务器2
nameserver3 字符串 域名服务器3
nameserver4 字符串 域名服务器4
nameserver5 字符串 域名服务器5
dnsmanagement 数字 对此域名启用DNS管理
emailforwarding 数字 对此域名启用邮件转发
idprotection 数字 对此域名启用私隐保护
firstname 字符串 用户的名字
lastname 字符串 用户的姓
address1 字符串 域名用户的地址
address2 字符串 域名用户的地址2
city 字符串 域名用户的城市
state 字符串 域名用户的省份
postcode 字符串 域名用户的邮编
country 字符串 域名用户的国家
phonenumber 字符串 电话号码,格式 +86.13888888888
email 字符串 域名用户的邮箱
adminfirstname 字符串 域名管理人的名字
adminlastname 字符串 域名管理人的姓
adminaddress1 字符串 域名管理人的地址
adminaddress2 字符串 域名管理人的地址2
admincity 字符串 域名管理人的城市
adminstate 字符串 域名管理人的省份
adminpostcode 字符串 域名管理人的邮编
admincountry 字符串 域名管理人的国家
adminphonenumber 字符串 电话号码,格式 +86.13888888888
adminemail 字符串 域名管理人的邮箱
domainfields 字符串 一个 base64 encoded serialized array 有特殊要求的域名后缀附加参数值。
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RegisterDomain&sld=exampledomain&tld=com&regperiod=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@exampledomain.com' --compressed
响应示例:
{"result":"success","msg":"Domain has been registered"}

TransferDomain

该命令用于向趣域网请求转入域名操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
transfersecret 字符串 域名转移码
regperiod 数字 注册年限
nameserver1 字符串 域名服务器1
nameserver2 字符串 域名服务器2
nameserver3 字符串 域名服务器3
nameserver4 字符串 域名服务器4
nameserver5 字符串 域名服务器5
dnsmanagement 数字 对此域名启用DNS管理
emailforwarding 数字 对此域名启用邮件转发
idprotection 数字 对此域名启用私隐保护
firstname 字符串 用户的名字
lastname 字符串 用户的姓
address1 字符串 域名用户的地址
address2 字符串 域名用户的地址2
city 字符串 域名用户的城市
state 字符串 域名用户的省份
postcode 字符串 域名用户的邮编
country 字符串 域名用户的国家
phonenumber 字符串 电话号码,格式 +86.13888888888
email 字符串 域名用户的邮箱
adminfirstname 字符串 域名管理人的名字
adminlastname 字符串 域名管理人的姓
adminaddress1 字符串 域名管理人的地址
adminaddress2 字符串 域名管理人的地址2
admincity 字符串 域名管理人的城市
adminstate 字符串 域名管理人的省份
adminpostcode 字符串 域名管理人的邮编
admincountry 字符串 域名管理人的国家
adminphonenumber 字符串 电话号码,格式 +86.13888888888
adminemail 字符串 域名管理人的邮箱
domainfields 字符串 一个 base64 encoded serialized array 有特殊要求的域名后缀附加参数值。
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=TransferDomain&sld=exampledomain&tld=com&transfersecret=gd23h231s21&regperiod=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@exampledomain.com' --compressed
响应示例:
{"result":"success","msg":"Domain transfer initiated successfully."}

RenewDomain

该命令用于向趣域网请求续费域名操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
regperiod 数字 注册年限
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RenewDomain&sld=exampledomain&tld=com&regperiod=1' --compressed
响应示例:
{"result":"success","msg":"The domain has been successfully."}

GetNameservers

该命令用于向趣域网请求获取域名的DNS服务器操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetNameservers&sld=exampledomain&tld=com' --compressed
响应示例:
{"result":"success","ns1":"ns1.exampledomain.com","ns2":"ns2.exampledomain.com"}

SaveNameservers

该命令用于向趣域网请求更新域名的DNS服务器操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
nameserver1 字符串 域名服务器1
nameserver2 字符串 域名服务器2
nameserver3 字符串 域名服务器3
nameserver4 字符串 域名服务器4
nameserver5 字符串 域名服务器5
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveNameservers&sld=exampledomain&tld=com&ns1=ns1.exampledomain.com&ns2=ns2.exampledomain.com' --compressed
响应示例:
{"result":"success"}

ReleaseDomain

该命令用于向趣域网请求释放域名操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
newtag 字符串 该域名的新标签
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=ReleaseDomain&sld=exampledomain&tld=com&newtag=1AND1-TEST' --compressed
响应示例:
{"result":"success"}

RequestDelete

该命令用于向趣域网请求删除域名操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RequestDelete&sld=exampledomain&tld=com' --compressed
响应示例:
{"result":"success"}

GetEPPCode

该命令用于向趣域网请求获取域名转移码操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetEPPCode&sld=exampledomain&tld=com' --compressed
响应示例:
{"result":"success","eppcode":"23svxce123fds"}

GetContactDetails

该命令用于向趣域网请求获取域名联系人信息操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetContactDetails&sld=exampledomain&tld=com' --compressed
响应示例:
{"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}}

SaveContactDetails

该命令用于向趣域网请求修改域名联人操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
contactdetails Array  
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveContactDetails&sld=exampledomain&tld=com&contactdetails[Registrant][Name]=John%20Doe&contactdetails[Registrant][Company]=Company%20name&contactdetails[Registrant][Address]=Address&contactdetails[Registrant][City]=Amsterdam&contactdetails[Registrant][Country]=NL&contactdetails[Registrant][Zip_Code]=1001 GT&contactdetails[Registrant][Email]=test@exampledomain.com&contactdetails[Registrant][Telephone]=N/A' --compressed
响应示例:
{"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}}

DomainGetLockingStatus

该命令用于向趣域网请求获取域名锁状态操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=domaingetlockingstatus&sld=exampledomain&tld=com' --compressed
响应示例:
{"result":"success","lockstatus":"unlocked"}

DomainUpdateLockingStatus

该命令用于向趣域网请求修改域名锁状态操作。

请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
lockstatus 空/数字 设置为 '1',则域名锁定
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=domainupdatelockingstatus&sld=exampledomain&tld=com&lockstatus=' --compressed
响应示例:
{"result":"success"}

GetDNS

该命令用于向趣域网请求获取域名DNS解析记录列表操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetDNS&sld=exampledomain&tld=com' --compressed
响应示例:
{"0":{"hostname":"*","type":"A","address":"0.0.0.0","priority":null},"1":{"hostname":"mail","type":"MXE","address":"0.0.0.0","priority":"10"},"result":"success"}

SaveDNS

该命令用于向趣域网请求修改域名DNS解析记录操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
dnsrecords 字符串 一个 base64 encoded serialized array 的DNS记录。
例如:base64_encode(serialize(array(0=>array("hostname"=>"*","type"=>"A","address"=>"0.0.0.0","priority"=>"N/A","recid"=>""))));;
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveDNS&sld=exampledomain&tld=com&dnsrecords=czowOiIiOw==' --compressed
响应示例:
{"result":"success"}

RegisterNameserver

该命令用于向趣域网请求注册域名服务器操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
nameserver 字符串  
ipaddress 字符串  
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RegisterNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com&ipaddress=1.1.1.1' --compressed
响应示例:
{"result":"success"}

ModifyNameserver

该命令用于向趣域网请求编辑已注册的域名服务器操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
nameserver 字符串  
currentipaddress 字符串  
newipaddress 字符串  
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=ModifyNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com¤tipaddress=1.1.1.1&newipaddress=2.2.2.2' --compressed
响应示例:
{"result":"success"}

DeleteNameserver

该命令用于向趣域网请求删除已注册的域名服务器操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
nameserver 字符串  
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=DeleteNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com' --compressed
响应示例:
{"result":"success"}

GetEmailForwarding

该命令用于向趣域网请求获取邮件转发记录操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetEmailForwarding&sld=exampledomain&tld=com' --compressed
响应示例:
{"1":{"prefix":"test","forwardto":"test@exampledomain.com"},"result":"success"}

SaveEmailForwarding

该命令用于向趣域网请求修改邮件转发记录操作。 请求参数
参数类型必须?描 述
sld 字符串 域名前缀
tld 字符串 域名后缀
prefix 字符串 一个 base64 encoded serialized array 的前缀。
例如:base64_encode(serialize(array(0=>"test"))));
forwardto 字符串 一个 base64 encoded serialized array 转发目标。
例如:base64_encode(serialize(array(0=>"test@exampledomain.com")));
请求示例:
curl 'https://api.quyu.net/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveEmailForwarding&sld=exampledomain&tld=com&prefix=czowOiIiOw==&forwardto=czowOiIiOw==' --compressed
响应示例:
{"result":"success"}
代码示列 (PHP) <?php $data = array( "action" => "RegisterDomain", "token" =>... 查看: 11839
API 接口简介 API 简介 该域名代理API允许您通过程序与趣域网相互通讯。... 查看: 17519