How do I include my apikey and username when I am using Confluence API?
Here's my code:
import requests
import json
url = "https://example.atlassian.net/wiki/rest/api/audit"
headers = {
"Accept": "application/json"
}
response = requests.request(
"GET",
url,
headers=headers
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
Where would I add the authentication?
Thanks!