问题描述
我有谷歌密钥、client_id 和 client_secret,我需要谷歌令牌,但我阅读了谷歌文档, https://developers.google.com/blogger/docs/3.0/using#auth https://github.com/googleapis/google-api-python-client/blob/master/docs/oauth.md 我没有找到如何获得令牌
code = input('Enter the authorization code: ')
flow.fetch_token(code=code)
import requests
url = "https://oauth2.googleapis.com/token"
data = {
"client_secret": "xx","client_id": "xx","project_id": "seventh-ripsaw-315203","grant_type" : "authorization_code",}
response=requests.post(url,data,timeout=5)
print(response.status_code,response.json())
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)