Update get_apps.py
This commit is contained in:
parent
9fc70acb4d
commit
6abeeda398
1 changed files with 1 additions and 8 deletions
|
@ -15,15 +15,8 @@ data = {
|
||||||
"callbackUrl": "http://example.com"
|
"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)
|
||||||
response = requests.post(url, json=data, headers=headers)
|
|
||||||
|
|
||||||
# Print the response (optional)
|
|
||||||
print(response.status_code)
|
print(response.status_code)
|
||||||
print(response.json())
|
print(response.json())
|
Loading…
Reference in a new issue