diff --git a/CHANGES b/CHANGES index dfee03f..10d545d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -Unreleased +1.14.4 ------- - Add analysis time to analysis object diff --git a/intezer_sdk/__init__.py b/intezer_sdk/__init__.py index ac8ad4e..ddfbab0 100644 --- a/intezer_sdk/__init__.py +++ b/intezer_sdk/__init__.py @@ -1 +1 @@ -__version__ = '1.14.3' +__version__ = '1.14.4' diff --git a/intezer_sdk/api.py b/intezer_sdk/api.py index 10e8881..2ccb22e 100644 --- a/intezer_sdk/api.py +++ b/intezer_sdk/api.py @@ -466,9 +466,9 @@ def get_index_response(self, index_id: str) -> Response: return response - def _set_access_token(self, api_key: str): + def _set_access_token(self): response = requests.post(self.full_url + '/get-access-token', - json={'api_key': api_key}, + json={'api_key': self.api_key}, verify=self._verify_ssl) if response.status_code in (HTTPStatus.UNAUTHORIZED, HTTPStatus.BAD_REQUEST): @@ -482,7 +482,7 @@ def set_session(self): self._session = requests.session() self._session.mount('https://', requests.adapters.HTTPAdapter(max_retries=3)) self._session.verify = self._verify_ssl - self._set_access_token(self.api_key) + self._set_access_token() self._session.headers['Authorization'] = 'Bearer {}'.format(self._access_token) self._session.headers['User-Agent'] = self.user_agent