I’ve found this answer but in another answer the header was different. So what is this correct? Is there anyway to know from the output whether or not I’ve authenticated correctly?

import requests

# Replace <personal-access-token> with your personal access token
headers = {
    'Authorization': 'Bearer <personal-access-token>',
}

url = 'https://api.github.com/repos/LemmyNet/lemmy/issues'

response = requests.get(url, headers=headers)

# Print the response content
print(response.content)