Php 如何通过ResellerClub api注册域

Php 如何通过ResellerClub api注册域,php,api,curl,Php,Api,Curl,我正在使用它通过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, CURLO

我正在使用它通过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&reg-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);
但我得到了这个错误
{“状态”:“错误”,“消息”:“{techcontactid\u003dtech ContactId未由您注册,admincontactid\u003dadmin ContactId未由您注册,billingcontactid\u003dbilling ContactId未由您注册,registrantcontactid\u003dregistrant ContactId未由您注册”}我也有这个问题,我刚刚找到了解决办法

这些ContactId来自您的客户,但不是customerId

您可以使用此API获取客户的联系人ID和其他详细信息


我为
.UK
TLD发送了
1
,而不是
-1
,并在我将值更改为
-1
后得到了此错误。