dropbox中包含python请求的请求无效

2024-10-01 15:37:55 发布

您现在位置:Python中文网/ 问答频道 /正文

enter image description here

我试着通过dropbox 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"}

Tags: httpscomclienttokenapiinputdocrequest

热门问题