📌  相关文章
📜  在 python 请求中添加不记名令牌 - Python 代码示例

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

代码示例1
import requests

auth_token='sdfghjkloerdtfyguhiopfghjkl;fghjkl'
hed = {'Authorization': 'Bearer ' + auth_token}
data = {'app' : 'aaaaa'}

url = 'https://api.xy.com'
response = requests.post(url, json=data, headers=hed)
print(response)
print(response.json())