Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python requests pass auth token

>>> import requests
>>> response = requests.get('https://website.com/id', headers={'Authorization': 'access_token myToken'})
or 
>>> response = requests.get('https://api.buildkite.com/v2/organizations/orgName/pipelines/pipelineName/builds/1230', headers={ 'Authorization': 'Bearer <your_token>' })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #requests #pass #auth #token
ADD COMMENT
Topic
Name
7+3 =