https://github.com/go-http/qcloud-cns
腾讯云云解析SDK,Go语言
https://github.com/go-http/qcloud-cns
cns golang qcloud sdk
Last synced: about 1 year ago
JSON representation
腾讯云云解析SDK,Go语言
- Host: GitHub
- URL: https://github.com/go-http/qcloud-cns
- Owner: go-http
- Created: 2018-03-19T07:31:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T09:00:54.000Z (about 8 years ago)
- Last Synced: 2025-06-02T07:38:58.063Z (about 1 year ago)
- Topics: cns, golang, qcloud, sdk
- Language: Go
- Size: 10.7 KB
- Stars: 10
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 腾讯云云解析SDK
[](http://godoc.org/github.com/athurg/go-qcloud-cns-sdk)
[腾讯云 云解析模块API](https://cloud.tencent.com/document/product/302) Go语言SDK
## 使用方法
```sh
go get github.com/athurg/go-qcloud-cns-sdk
```
## 使用范例
```golang
package main
import (
"github.com/athurg/go-qcloud-cns-sdk"
"log"
)
func main() {
cli := cns.New("secretId", "secretKey")
domains, err := cli.DomainList()
if err != nil {
log.Fatal(err)
}
for _, domain := range domains {
log.Println(domain)
}
}
```
## 完成状态
- [x] 域名相关接口
- - [x] 添加域名
- - [x] 设置域名状态
- - [x] 获取域名列表
- - [x] 删除域名
- [x] 解析记录相关接口
- - [x] 添加解析记录
- - [x] 设置解析记录状态
- - [x] 修改解析记录
- - [x] 获取解析记录列表
- - [x] 删除解析记录