This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-*- coding: utf-8 -* | |
| import requests | |
| class ddns: | |
| def __init__(self): | |
| self.auth_email = "abc@abc.com" # cloudflare email | |
| self.auth_key= "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" #https://dash.cloudflare.com/profile/api-tokens Global API Key | |
| self.zone_name= "abc.xyz" | |
| self.record_name= "xx.abc.xyz" |