创建解析记录失败
goer3 opened this issue · 1 comments
goer3 commented
func (s *RecordsService) Create(domain string, recordAttributes Record) (Record, *Response, error) {
payload := s.client.CommonParams.toPayLoad()
payload.Add("domain_id", domain)
.....
}
不知道是不是 DnsPod 文档更新了,这里如果将域名传递给 domain_id 提交会报错:could not get domains: 域名编号不正确
个人将 domain_id 更换成 domain 字段就能正常创建。
ldez commented
DNSPod is now a part of Tencent Cloud.
I recommend using https://github.com/tencentcloud/tencentcloud-sdk-go
https://github.com/TencentCloud/tencentcloud-sdk-go/tree/master/tencentcloud/dnspod