我正在使用 - >中的示例代码https://gbshouse.uservoice.com/knowledgebase/articles/109834-rage4-dns-developers-api#create_regular_domain通过API首次在Rage4系统中创建基本域。 但是在调用之后我得到了返回的NULL值。 我仔细检查了我的用户名并传递了/ api密钥,验证结果很好。 我在rage4系统中没有得到任何日志错误。
使用的代码:
<?php
$name = 'testdom4.com';
$email = 'admin@testdom4.com';
$username = 'user@testdom4.com';
$password = '4444444444444444444a1e42a';
$ch = curl_init("https://secure.rage4.com/RAPI/CreateRegularDomain/?name=" . $name . "&email=" . $email);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $username.":".$password);
$result = curl_exec($ch);
var_dump(json_decode($result, true));
?>
我是否在后端错过了初始化的内容? 如何在rage4系统中通过api创建基本域?