我正在尝试获取请求,但一直收到响应401
import requests
import json
payload = {
'Accept': 'application/json',
'Authorization': 'Bearer fB5T3IaHjtUXQNb3IH0Lm4epcRHnkAK',
'cache-control': 'no-cache'
}
r = requests.get('https://api.vidoza.net/v1/upload/http/server/', params=payload)
print(r)
这是一个例子
curl -X GET \
https://api.vidoza.net/v1/upload/http/server \
-H 'Accept: application/json' \
-H 'Authorization: Bearer fB5T3IaHjtUXQNb3IH0Lm4epcRHnkAK' \
-H 'cache-control: no-cache'
我得到的东西
<Response [401]>