freenom API 未验证
freenom API not authenticating
我想将 Freenom 的 DNS 记录自动更新为我当前的全球 IP 地址,因为我没有静态 IP。所以我研究了 Freenom 的 API 并尝试了一下。我试过这个:https://api.freenom.com/v2/domain/list?email=*****&password=*******
并期待一个活动域列表。但是却得到了这个错误:
{
"error": "Login credentials do not match any account",
"status": "error"
}
这很奇怪,因为我已经检查了凭据并且它们 100% 正确。我还尝试了 username
属性 而不是 email
属性,我尝试通过 HTTP headers 和 body 设置此信息,但是我什么都没有。
如果有人知道我如何让 API 工作,那将不胜感激。
谢谢
根据 this article the Freenom API is only available for resellers. I ran into the same issue myself. You can use a program that accesses the Freenom UI to change the DNS records, like this one,它使用 Python 和 UI 来更新 DNS 记录。或者您可以使用其他 DNS 提供商,我就是这样做的。
我想将 Freenom 的 DNS 记录自动更新为我当前的全球 IP 地址,因为我没有静态 IP。所以我研究了 Freenom 的 API 并尝试了一下。我试过这个:https://api.freenom.com/v2/domain/list?email=*****&password=*******
并期待一个活动域列表。但是却得到了这个错误:
{
"error": "Login credentials do not match any account",
"status": "error"
}
这很奇怪,因为我已经检查了凭据并且它们 100% 正确。我还尝试了 username
属性 而不是 email
属性,我尝试通过 HTTP headers 和 body 设置此信息,但是我什么都没有。
如果有人知道我如何让 API 工作,那将不胜感激。
谢谢
根据 this article the Freenom API is only available for resellers. I ran into the same issue myself. You can use a program that accesses the Freenom UI to change the DNS records, like this one,它使用 Python 和 UI 来更新 DNS 记录。或者您可以使用其他 DNS 提供商,我就是这样做的。