📜  python 请求传递身份验证令牌 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.937000             🧑  作者: Mango

代码示例1
>>> 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 ' })