Authenticating
curl -X GET "https://api.predicthq.com/v1/events/" \
-H "Authorization: Bearer $ACCESS_TOKEN" import requests
access_token = "ACCESS_TOKEN"
response = requests.get(
url="https://api.predicthq.com/v1/events/",
headers={
"Authorization": f"Bearer {access_token}"
}
)
print(response.json())Create an API Token
Last updated
Was this helpful?