Change from
headers.append(‘Token’, ‘0a93059f2c3fa0e:a7e0f3155d7a5a7’);
to
headers.append(‘token’, ‘0a93059f2c3fa0e:a7e0f3155d7a5a7’);
I think that’ll do it - uppercase T fails in my tests
Here’s a complete python snippet that works in my environment for reference
import requests , json
apiKey = “blablablakey”
apiSecret = “blablablasecret”
url = “http://192.168.0.222:8000/api/resource/User”
headers = {
‘Authorization’: "token " + apiKey + “:” + apiSecret,
‘cache-control’: “no-cache”
}
response = requests.request(“GET”, url, headers=headers, verify=False)
print(response.text)