【问题标题】:Create a subdomain and point it to a folder via Godaddy API创建一个子域并通过 Godaddy API 将其指向一个文件夹
【发布时间】:2020-10-22 16:20:07
【问题描述】:

我正在添加一个'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"}]

【问题讨论】:

  • 你找到解决办法了吗?
  • 是的,我为此使用了 Cpanel api。

标签: godaddy-api


【解决方案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
                )
        );

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-30
    • 2018-01-22
    • 2014-06-19
    • 2011-06-25
    • 2011-03-15
    • 1970-01-01
    • 2012-08-13
    • 1970-01-01
    相关资源
    最近更新 更多