This curl command works:
curl -X GET 172.168.0.101/api/v1/events/ -H 'Authorization: Token 353e5axxxxxxxxxxxxxxxxxxxxx'
I want to do the same in python and requests seems like a good lib.
However:
import requests
header = {'Authorization': 'Token 353e5axxxxxxxxxxxxxxxxxxxxx'}
r = requests.post('http://172.168.0.101/api/v1/events/', headers=header)
print r
does not work. It results in a 400 response.