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)