我正在添加一个'A' Record using Godaddy API
,创建了一个子域,但是它没有指向我需要的文件夹。请帮我做同样的事情,我可以在API中使用什么来指向我的子域。
https://api.godaddy.com/v1/domains/tfedtech.com/records/?domain=domain.com
[{"data": "148.66.122.111","name": "test","ttl": 10800,"type": "A"}]
答案 0 :(得分:1)
我找到了它的解决方案并为此使用了 Cpanel API https://api.docs.cpanel.net/cpanel/introduction/
$resonse = $this->cpanel->uapi->post->SubDomain->addsubdomain(
array(
"domain" => "$subdomain",
"rootdomain" => "tfedtech.com",
"dir" => "public_html/panel.tfedtech.com",
"disallowdot" => 1
)
);