updated version and fixed assigned headers
This commit is contained in:
parent
2b7a0c5229
commit
3c8feda47e
@ -5,7 +5,7 @@
|
|||||||
from .client import CZDS
|
from .client import CZDS
|
||||||
|
|
||||||
|
|
||||||
__version__ = '1.2.4'
|
__version__ = '1.2.5'
|
||||||
__author__ = 'acidvegas'
|
__author__ = 'acidvegas'
|
||||||
__email__ = 'acid.vegas@acid.vegas'
|
__email__ = 'acid.vegas@acid.vegas'
|
||||||
__github__ = 'https://github.com/acidvegas/czds'
|
__github__ = 'https://github.com/acidvegas/czds'
|
@ -64,6 +64,7 @@ class CZDS:
|
|||||||
|
|
||||||
result = await response.json()
|
result = await response.json()
|
||||||
logging.info('Successfully authenticated with ICANN API')
|
logging.info('Successfully authenticated with ICANN API')
|
||||||
|
self.headers = {'Authorization': f'Bearer {result["accessToken"]}'}
|
||||||
return result['accessToken']
|
return result['accessToken']
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -83,7 +84,7 @@ class CZDS:
|
|||||||
raise Exception(error_msg)
|
raise Exception(error_msg)
|
||||||
|
|
||||||
links = await response.json()
|
links = await response.json()
|
||||||
logging.info(f'Successfully fetched {len(links)} zone links')
|
logging.info(f'Successfully fetched {len(links):,} zone links')
|
||||||
return links
|
return links
|
||||||
|
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -11,7 +11,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='czds-api',
|
name='czds-api',
|
||||||
version='1.2.4',
|
version='1.2.5',
|
||||||
author='acidvegas',
|
author='acidvegas',
|
||||||
author_email='acid.vegas@acid.vegas',
|
author_email='acid.vegas@acid.vegas',
|
||||||
description='ICANN API for the Centralized Zones Data Service',
|
description='ICANN API for the Centralized Zones Data Service',
|
||||||
|
Loading…
Reference in New Issue
Block a user