degubowanie
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-01-22 23:31:03 +01:00
parent b5987004ed
commit 53e939cc3b

View File

@ -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)