From 334f73a167a43958a1896cf4532b96fa26b9d7d5 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte Date: Thu, 8 Feb 2024 10:01:09 +0100 Subject: [PATCH] a taste of what the token is --- api-mwe.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api-mwe.py b/api-mwe.py index db96a9f..b9da8c3 100644 --- a/api-mwe.py +++ b/api-mwe.py @@ -26,6 +26,8 @@ token = json.loads(r.content.decode())["token"] +print(f"Token is {token[:4]}{'*'*(len(token)-7)}{token[-3:]}") + headers = {'Authorization': f'Token {token}'} r = requests.get(f'{baseUrl}/api/licence/', headers=headers)