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 –