I am using Python Requests 2.7.0 and I am trying to pass an authtoken for a session. I can successfully connect using session.auth(user,pass) , but I am not familiar with how to pass authtoken to the session.
I tried using the headers for the session, but that didn't work. Here is the general flow of what I have:
session = requests.Session() session.headers.update({'Authorization': TOKEN}) ...
source share