python requests pass auth token

Solutions on MaxInterview for python requests pass auth token by the best coders in the world

showing results for - "python requests pass auth token"
Romy
23 Nov 2016
1>>> import requests
2>>> response = requests.get('https://website.com/id', headers={'Authorization': 'access_token myToken'})
3or 
4>>> response = requests.get('https://api.buildkite.com/v2/organizations/orgName/pipelines/pipelineName/builds/1230', headers={ 'Authorization': 'Bearer <your_token>' })
5