A dnspod api SDK
Project description
A dnspod api SDK.
安装
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dnspod-sdk-0.0.2.tar.gz
(1.9 kB
view details)
File details
Details for the file dnspod-sdk-0.0.2.tar.gz
.
File metadata
- Download URL: dnspod-sdk-0.0.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ffbaf2f416965b09b19fa32fc5930d8ed067e4bbaeddc74685e923202bf42f |
|
MD5 | 124a64c3dbee19b7ce45d9e5eab322d5 |
|
BLAKE2b-256 | f39814e689f60e85e5abbac594e0af4a4e7978933e246b5c755bbac15abec8e4 |