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.

Source Distribution

ddnspod-0.2.0.tar.gz (2.0 kB view hashes)

Uploaded source

Built Distribution

ddnspod-0.2.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page