Last active
February 10, 2021 01:20
-
-
Save buzzkillb/aaece49f675e4aeea85709dce2eb4924 to your computer and use it in GitHub Desktop.
ddns_update_data_denarius.py
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
from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException | |
#DDNS to update data | |
ddns_update_name = 'api:python_example' | |
ddns_update_value = 'example value update' | |
ddns_update_expiration = 9999 | |
# rpc_user and rpc_password are set in the denarius.conf file | |
rpc_connection = AuthServiceProxy("http://%s:%[email protected]:32369"%("rpcusername", "rpcpassword")) | |
name_update = rpc_connection.name_update(ddns_update_name, ddns_update_value, ddns_update_expiration) | |
print(name_update) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment