Socket
Socket
Sign inDemoInstall

dnspod-sdk

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dnspod-sdk

A dnspod api SDK


Maintainers
1

Readme

dnspod-sdk

A dnspod api SDK.

官方API文档 <https://www.dnspod.cn/docs/index.html>_

安装

.. code-block:: sh

pip install dnspod-sdk

使用

.. code-block:: py

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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc