sjatsh / tcloud-cns

腾讯云云解析 Golang SDK

Home Page:https://sjis.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

腾讯云golang云解析SDK

腾讯云 云解析模块API Go语言SDK

使用方法

go get github.com/sjatsh/tcloud-cns 

使用范例

package main

import (
	"github.com/sjatsh/tcloud-cns"
	"log"
)

func main() {
	cli := cns.New("secretId", "secretKey")
	params:=url.Values{}
	params.Set("offset","0")
	params.Set("length","1")
	domainsResp, err := cli.DomainList(params)
	if err != nil {
		log.Fatal(err)
	}

	for _, domain := range domainsResp.Domains {
		log.Println(domain)
	}
}

完成状态

  • 域名相关接口
    • 添加域名
    • 设置域名状态
    • 获取域名列表
    • 删除域名
  • 解析记录相关接口
    • 添加解析记录
    • 设置解析记录状态
    • 修改解析记录
    • 获取解析记录列表
    • 删除解析记录

About

腾讯云云解析 Golang SDK

https://sjis.me

License:Apache License 2.0


Languages

Language:Go 100.0%