From 71ba56f1d73984c10ef5e17966def251b680b3d5 Mon Sep 17 00:00:00 2001 From: robpeters-appliednt <38111647+robpeters-appliednt@users.noreply.github.com> Date: Thu, 2 May 2019 10:59:49 -0600 Subject: [PATCH] For newer versions of urllib3 https://urllib3.readthedocs.io/en/latest/user-guide.html#certificate-verification --- python3/getRequest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python3/getRequest.py b/python3/getRequest.py index 89b936a..d77de5e 100644 --- a/python3/getRequest.py +++ b/python3/getRequest.py @@ -1,6 +1,7 @@ import urllib3 +import certifi -http = urllib3.PoolManager() +http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where()) company = "YOUR_TEAMWORK_SITE_NAME" key = "YOUR_API_KEY" @@ -13,4 +14,4 @@ response = request.status data = request.data -print(data) \ No newline at end of file +print(data)