From b01e38d1f6f1aa7ec3d243fe3d2658e6abfddcec Mon Sep 17 00:00:00 2001 From: "daniel.x.olsson@ri.se" Date: Mon, 2 Jan 2023 16:31:00 +0100 Subject: Added optional "verify" argument to __init__ for main class --- phpipam_api/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'phpipam_api/__init__.py') diff --git a/phpipam_api/__init__.py b/phpipam_api/__init__.py index 1dc065f..3c3fc06 100755 --- a/phpipam_api/__init__.py +++ b/phpipam_api/__init__.py @@ -20,7 +20,7 @@ class PhpipamAPI: https://phpipam.net/api-documentation/ """ - def __init__(self, api_url, app_id, api_user, api_password): + def __init__(self, api_url, app_id, api_user, api_password, verify=False): """ Parameters ---------- @@ -32,9 +32,11 @@ class PhpipamAPI: username, leave empty to use static token authentification api_password : str password or static authentification token + verify : Bool (optional) + verify API server SSL certificate """ - self._backend = PhpipamBackend(api_url, app_id, api_user, api_password) + self._backend = PhpipamBackend(api_url, app_id, api_user, api_password, verify) def __getattr__(self, item): return PhpipamResource(self._backend, item) -- cgit v1.2.3 From f80921ec8e917216ad891860fb32801b741838ec Mon Sep 17 00:00:00 2001 From: "daniel.x.olsson@ri.se" Date: Mon, 2 Jan 2023 17:03:16 +0100 Subject: Changed default SSL verify to True --- phpipam_api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpipam_api/__init__.py') diff --git a/phpipam_api/__init__.py b/phpipam_api/__init__.py index 3c3fc06..f579572 100755 --- a/phpipam_api/__init__.py +++ b/phpipam_api/__init__.py @@ -20,7 +20,7 @@ class PhpipamAPI: https://phpipam.net/api-documentation/ """ - def __init__(self, api_url, app_id, api_user, api_password, verify=False): + def __init__(self, api_url, app_id, api_user, api_password, verify=True): """ Parameters ---------- -- cgit v1.2.3