请求获取保留响应401

时间:2019-06-24 14:14:44

标签: python

我正在尝试获取请求,但一直收到响应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]>

0 个答案:

没有答案