Update get_apps.py

This commit is contained in:
Julimiro 2024-08-20 04:57:22 -04:00
parent 9fc70acb4d
commit 6abeeda398

View file

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