From 6fe1471fd400b0753d8d6891d8c0c2ccb9738406 Mon Sep 17 00:00:00 2001 From: Ambre Bertucci Date: Fri, 25 Jul 2025 12:17:03 +0200 Subject: [PATCH] Update to match recent Cloudflare API changes (Closes #4) --- README.md | 2 +- cloudflare_ddns/app.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c2daf9f..2689d89 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Feel free to select the method fitting your setup the best! ### Getting a Cloudflare Token -The first step will be to create an API token with the following scopes: +The first step will be to create a user API token with the following scopes: - `Zone:Read` - `DNS:Edit` diff --git a/cloudflare_ddns/app.py b/cloudflare_ddns/app.py index 6c02692..a14b2e9 100644 --- a/cloudflare_ddns/app.py +++ b/cloudflare_ddns/app.py @@ -114,7 +114,7 @@ class ApplicationJob(threading.Thread): domain = Domain( record_json["name"], record_json["type"], - record_json["zone_id"], + zone_json["id"], record_json["id"] ) found_domains[f'{record_json["name"]}-{record_json["type"]}'] = domain diff --git a/requirements.txt b/requirements.txt index 0ef32ad..c7d9709 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ requests~=2.25.1 -click8~=8.0.1 +click~=8.0.1