rage4 API,创建一个基本的域= null

时间:2015-05-06 10:36:42

标签: php api curl

我正在使用 - >中的示例代码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创建基本域?

0 个答案:

没有答案