import com.baidubce.http.ApiExplorerClient; import com.baidubce.http.AppSigner; import com.baidubce.http.HttpMethodName; import com.baidubce.model.ApiExplorerRequest; import com.baidubce.model.ApiExplorerResponse; // 域名查询 Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "http://gwgp-akvgrtwsvif.n.bdcloudapi.com/whois/query"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); request.addQueryParameter("domain", ""); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }
点击复制代码
{
"status": 0,
"msg": "ok",
"result": {
"domain": "jisuapi.com",
"registered": "yes",
"registrarinfo": {
"registrar": "ENAME TECHNOLOGY CO., LTD.",
"whois": "whois.ename.com",
"referrer": "http://www.ename.net"
},
"nserver": {
"f1g1ns1.dnspod.net": "183.232.126.141",
"f1g1ns2.dnspod.net": "14.215.150.17"
},
"status": [
"clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited",
"clientTransferProhibited https://icann.org/epp#clientTransferProhibited"
],
"changed": "2016-06-28",
"created": "2015-08-18",
"expires": "2017-08-18",
"statuscn": [
"注册商设置禁止删除",
"注册商设置禁止转移"
],
"rawdata": [
"",
"Whois Server Version 2.0",
"",
"Domain names in the .com and .net domains can now be registered",
]
}
}
退款规则:
退款时仅退还实付金额,已使用的代金券不退还。
已经开具完发票的,退款时需要您退回发票。
订单支付完成后7天内为交易担保期,可免费申请退款。
超过7天的订单需退款的请先联系客服退款。需收取资源包余量的15%作为财务成本支出,退余量的85%。
如对退款有疑问,请先联系客服进行咨询。详情参考云市场退款规则:
https://cloud.baidu.com/doc/Market/s/zjwvytb6s
域名whois查询,可查询域名的注册信息,所有人、注册机构、注册时间、到期时间、更新时间等。