📜  python api 定义不记名令牌 - Python 代码示例

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

代码示例1
import requests
endpoint = ".../api/ip"
data = {"ip": "1.1.2.3"}
headers = {"Authorization": "Bearer MYREALLYLONGTOKENIGOT"}

print(requests.post(endpoint, data=data, headers=headers).json())