栏目:用户文档 作者:小天 点击: 5,172 次
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 <?php$data = array("action" => "RegisterDomain","token" => "AaLc8eNZWsZtWlT9LtT7NUha","authemail" => "test@exampledomain.com","sld" => "domainexample","tld" => "com","regperiod" => 1,"nameserver1" => "ns1.domainexample.com","nameserver2" => "ns2.domainexample.com","nameserver3" => "ns3.domainexample.com","nameserver4" => "ns4.domainexample.com","nameserver5" => "ns5.domainexample.com","dnsmanagement" => 1,"emailforwarding" => 1,"idprotection" => 1,"firstname" => "John","lastname" => "Doe","companyname" => "Company Name","address1" => "Address 1","address2" => "Address 2","city" => "City","state" => "ST","country" => "IT","postcode" => "12345","phonenumber" => "4455677888990","email" => "user@domainexample.com","adminfirstname" => "John","adminlastname" => "Doe","admincompanyname" => "Company Name","adminaddress1" => "Address 1","adminaddress2" => "Address 2","admincity" => "City","adminstate" => "ST","admincountry" => "IT","adminpostcode" => "12345","adminphonenumber" => "4455677888990","adminemail" => "admin@domainexample.com","additionalfields" => base64_encode(serialize(array_values(array()))));$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "https://api.quyu.net/api.php");curl_setopt($ch, CURLOPT_TIMEOUT, 30);curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_HEADER, false);$result = curl_exec($ch);$res = json_decode($result, true);print_r($res);curl_close($ch);?>
声明: 本文由( 小天 )原创编译,转载请保留链接: 趣域网域名API的PHP代码示列
------====== 本站公告 ======------
欢迎使用趣域网域名百科,我们将长期提供域名使用相关知识和投资域名的方法和技巧;并提供主机、服务器的解决问题和网站运营方法。