Skip to main content

A dnspod api SDK

Project description

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())

Project details


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)

Uploaded Source

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

Hashes for dnspod-sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f7ffbaf2f416965b09b19fa32fc5930d8ed067e4bbaeddc74685e923202bf42f
MD5 124a64c3dbee19b7ce45d9e5eab322d5
BLAKE2b-256 f39814e689f60e85e5abbac594e0af4a4e7978933e246b5c755bbac15abec8e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page