I am trying to get an API query into python. The command line
curl --header \"Authorization:access_token myToken\" https://website.com/id
g
I'll add a bit hint: it seems what you pass as the key value of a header depends on your authorization type, in my case that was PRIVATE-TOKEN
PRIVATE-TOKEN
header = {'PRIVATE-TOKEN': 'my_token'} response = requests.get(myUrl, headers=header)