【发布时间】:2020-12-18 04:14:38
【问题描述】:
我按照说明在我的应用程序中使用了 gmail oauth api。
在 Authorized redirect URIs 注册 url 似乎不起作用,因为 localhost 之后的数字似乎在每次运行中都会改变(请看图片)
问题是,当 Google 的 OAuth2 页面被调用时,redirect_uri 一直被设置为 http://localhost:/
当我从 https://developers.google.com/gmail/api/quickstart/python 运行代码时出现此错误
【问题讨论】:
-
您是否尝试仅将“localhost”添加到同意屏幕和凭据 redirect_uri?没有端口号?
-
我试过了,但它说它是一个不完整的 URL
标签: python-3.x gmail-api