问题描述
在使用Python动态化Google Drive API的访问令牌时,我遇到了一个问题。我遇到问题了
“错误”:“ unsupported_grant_type”,\ n“错误描述”:“无效的Grant_type:”
这是我的Python API代码:
import requests
data = {
'client_id': '*****','client_secret': '*****','grant_type': 'authorization_code','access_type': 'offline','redirect_uri': 'https://developers.google.com/oauthplayground','code': '*****'
}
response = requests.post('https://oauth2.googleapis.com/token',data=data)
print(response.text.encode('utf8'))
如何解决此错误?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)