包含Python请求的保管箱中的无效请求

时间:2018-11-13 20:50:42

标签: python http dropbox-api

enter image description here

我尝试通过保管箱doc发出请求,并得到以下信息:

urlToken = 'https://api.dropbox.com/1/oauth2/token'
headers = {
                'code': input(),
                'grant_type': 'authorization_code',
                'client_id': '#############',
                'client_secret': '######',
                'redirect_uri': 'https://localhost'
    }
request = requests.post(urlToken, headers=headers)

输出:

{"error_description": "No auth function available for given request", "error": "invalid_request"}

1 个答案:

答案 0 :(得分:-1)

x :: Array [ Int ] x = map (runExists (unwrap >>> _.x)) arr