CloudXNS API Python SDK

码农软件 · 软件分类 · 常用工具包 · 2019-08-15 15:13:10

软件介绍

这是一款智能DNS CloudXNS 官方推出一个款CloudXNS系统API的 Python SDK包,使用比较方便,完整的支持了所有API操作。

示例:

#!/usr/bin/env python
#-*- coding:utf-8 -*-
from cloudxns.api import *
try:
    import json
except ImportError:
    import simplejson as json
if __name__ == '__main__':
    print 'CloudXNS API Version: ', Api.vsersion()
    api_key = 'XXXXXX'
    secret_key = 'XXXXXX'
    api = Api(api_key=api_key, secret_key=secret_key)
    # api.set_debug(True)
    """
    功能 域名列表
    HTTP 请求方式 GET
    URL https://www.cloudxns.net/api2/domain
    :return: String
    """
    result = api.domain_list()
    print result['message']
    print result['data']
    """
    功能 添加域名
    HTTP 请求方式 POST
    URL https://www.cloudxns.net/api2/domain
    :return: String
    """
    import random
    domain = "sdk-test%d.com" % random.randint(1000, 100000)
    result = api.domain_add(domain)
    print result
    """
    功能 删除域名
    HTTP 请求方式 DELETE
    URL https://www.cloudxns.net/api2/domain
    :return: String
    """
    result = api.domain_delete(32224)
    print result

本文地址:https://www.codercto.com/soft/d/12425.html

The Probabilistic Method

The Probabilistic Method

Noga Alon、Joel H. Spencer / Wiley-Interscience / 2008-8-11 / USD 137.00

Praise for the Second Edition : "Serious researchers in combinatorics or algorithm design will wish to read the book in its entirety...the book may also be enjoyed on a lighter level since the diffe......一起来看看 《The Probabilistic Method》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具