From 53e939cc3b8ae00db5f64d6118ed1769ae45090f Mon Sep 17 00:00:00 2001 From: Jakub K Date: Mon, 22 Jan 2024 23:31:03 +0100 Subject: [PATCH] degubowanie --- jobposting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobposting/views.py b/jobposting/views.py index 691837a..9bb7805 100644 --- a/jobposting/views.py +++ b/jobposting/views.py @@ -100,7 +100,7 @@ class GetAuthTokenView(APIView): print("GET SECRET") credential = "{0}:{1}".format(client_id, client_secret) credential_b = base64.b64encode(credential.encode("utf-8")) - + print(credential_b) headers = { "Authorization": f"Basic {credential_b}", "Cache-Control": "no-cache", @@ -109,7 +109,7 @@ class GetAuthTokenView(APIView): data = { "grant_type": "client_credentials" } - + print(headers) print("DATA READY") response = requests.post('http://izaac.izaac.pl/o/token/', headers=headers, data=data) print(response.text)