Spaces:
Sleeping
Sleeping
OnlyBiggg commited on
Commit ·
d831aaf
1
Parent(s): 74168a7
common/external/external_api.py
CHANGED
|
@@ -13,6 +13,7 @@ class API():
|
|
| 13 |
else:
|
| 14 |
url = f"{API_BASE_URL}{endpoint}"
|
| 15 |
access_token = await get_access_token()
|
|
|
|
| 16 |
headers = headers or {}
|
| 17 |
headers.setdefault("Content-Type", "application/json")
|
| 18 |
headers["Authorization"] = f"Bearer {access_token}"
|
|
|
|
| 13 |
else:
|
| 14 |
url = f"{API_BASE_URL}{endpoint}"
|
| 15 |
access_token = await get_access_token()
|
| 16 |
+
print(access_token)
|
| 17 |
headers = headers or {}
|
| 18 |
headers.setdefault("Content-Type", "application/json")
|
| 19 |
headers["Authorization"] = f"Bearer {access_token}"
|