czds

- ICANN Centralized Zone Data Service Tool
git clone git://git.acid.vegas/czds.git
Log | Files | Refs | Archive | README | LICENSE

commit 6cd0d267d1af0122ff09bf9cc0ff98778df0041f
parent 2b7a0c5229e63f79f1953bf961c3b83d479d91cd
Author: acidvegas <acid.vegas@acid.vegas>
Date: Fri, 21 Mar 2025 20:06:36 -0400

updated version and fixed assigned headers

Diffstat:
Mczds/__init__.py | 2+-
Mczds/client.py | 3++-
Msetup.py | 2+-

3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/czds/__init__.py b/czds/__init__.py
@@ -5,7 +5,7 @@
 from .client import CZDS
 
 
-__version__ = '1.2.4'
+__version__ = '1.2.5'
 __author__  = 'acidvegas'
 __email__   = 'acid.vegas@acid.vegas'
 __github__  = 'https://github.com/acidvegas/czds'
 \ No newline at end of file
diff --git a/czds/client.py b/czds/client.py
@@ -64,6 +64,7 @@ class CZDS:
 
                 result = await response.json()
                 logging.info('Successfully authenticated with ICANN API')
+                self.headers = {'Authorization': f'Bearer {result["accessToken"]}'}
                 return result['accessToken']
 
         except Exception as e:
@@ -83,7 +84,7 @@ class CZDS:
                 raise Exception(error_msg)
 
             links = await response.json()
-            logging.info(f'Successfully fetched {len(links)} zone links')
+            logging.info(f'Successfully fetched {len(links):,} zone links')
             return links
 
 
diff --git a/setup.py b/setup.py
@@ -11,7 +11,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
 
 setup(
 	name='czds-api',
-	version='1.2.4',
+	version='1.2.5',
 	author='acidvegas',
 	author_email='acid.vegas@acid.vegas',
 	description='ICANN API for the Centralized Zones Data Service',