Skip to main content

ddnspod

Project description

# get domain_id and record_id
# curl -X POST https://dnsapi.cn/Domain.List -d 'login_token=LOGIN_TOKEN&format=json'
# curl -X POST https://dnsapi.cn/Record.List -d 'login_token=LOGIN_TOKEN&format=json&domain_id=2317346'

from ddnspod.ddns import Ddns


if __name__ == '__main__':
    token_id = '12345'
    token = 'ec589ccfa8jk4b1241d3e63b7690b53b'
    domain_id = 37642234
    record_id = 18292123

    d = Ddns('{},{}'.format(token_id, token), domain_id, record_id, 'dev')
    # checker for ip update every 10 seconds
    d.checker(10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ddnspod, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ddnspod-0.2.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ddnspod-0.2.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page