From 6abeeda398da71d30ca584873e7c4141474bcf1e Mon Sep 17 00:00:00 2001 From: Julimiro Date: Tue, 20 Aug 2024 04:57:22 -0400 Subject: [PATCH] Update get_apps.py --- get_apps.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/get_apps.py b/get_apps.py index 26ace2b..4e86ecc 100644 --- a/get_apps.py +++ b/get_apps.py @@ -15,15 +15,8 @@ data = { "callbackUrl": "http://example.com" } -# Define the headers, including the bearer token for authorization -headers = { - 'Authorization': f'Bearer {os.getenv("api_key")}', # replace YOUR_ACCESS_TOKEN with your actual token - 'Content-Type': 'application/json' -} -# Send the POST request -response = requests.post(url, json=data, headers=headers) +response = requests.post(url, json=data) -# Print the response (optional) print(response.status_code) print(response.json()) \ No newline at end of file