diff --git a/czds/__init__.py b/czds/__init__.py index b4752ea..c6bbadb 100644 --- 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 index 55c6d55..7ff96e9 100644 --- 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 index 0e421f4..e88a291 100644 --- 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',