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