Answers for "python requests pass auth token"

0

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>' })
Posted by: Guest on June-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language