0
我用這對域名註冊通過API 這是我的代碼..如何通過ressellerclub API註冊域名
$userid= "519473";
$apikey= "ZNmID1ypHfDQ61YKQw0GufQQ2k3HxR0Y";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://test.httpapi.com/api/domains/register.json");
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_POST,TRUE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// Set the request as a POST FIELD for curl.
curl_setopt($ch, CURLOPT_POSTFIELDS, 'auth-userid=519473&api-key=ZNmID1ypHfDQ61YKQw0GufQQ2k3HxR0Y&domain-name=hts.in&years=1&ns=ns1.faizan.com&ns=ns2.faizan.com&customer-id=10963860®-contact-id=10963860&admin-contact-id=10963860&tech-contact-id=10963860&billing-contact-id=10963860&invoice-option=KeepInvoice&protect-privacy=false');
$httpResponse = curl_exec($ch);
print($httpResponse);
,但我收到此錯誤 {「地位」:「ERROR」,」消息 「:」{techcontactid \ u003dtech的ContactID沒有被你註冊,admincontactid \ u003dadmin的ContactID沒有被你註冊,billingcontactid \ u003dbilling的ContactID沒有被你註冊,registrantcontactid \ u003dregistrant的ContactID沒有被你註冊}「
我送'1',而不是'-1'在'管理員接觸,id'爲'.UK 'TLD並得到這個錯誤,在我將值更改爲'-1'後,它得到修復。 http://manage.resellerclub.com/kb/answer/752 –