dnspod-sdk

A dnspod api SDK


Keywords
DNSPod, DNS, SDK
License
MIT
Install
pip install dnspod-sdk==0.0.2

Documentation

dnspod-sdk

A dnspod api SDK.

官方API文档

安装

pip install dnspod-sdk

使用

from dnspod_sdk import DnspodClient

token_id = 0
token = "<your token>"
user_agent = "程序英文名称/版本(联系邮箱))"

dc = DnspodClient(token_id, token, user_agent)

r = dc.post("/Info.Version")
print(r.json())

r = dc.post("/Domain.List", data={"type": "all", "length": 1})
print(r.json())