这是一个直接跟进在这个问题上提供的信息,登录到谷歌帐户要遵循此蟒谷歌教程:错误教程使用Python
由于界面变化很大,我遇到了一些问题。
我最大的问题是在步骤1 - 3b。我不得不粘贴这些值:
http://localhost:4567
http://mysite.example.com
https://mysite.example.com
在某些地方,但我不知道在哪里。
所以我简单地与教程继续进行,在端口启动的应用程序在我的本地现在4567
,应用程序启动很好,但是当我点击登录按钮,我得到一个错误:
Error:invalid_client
no registered origin
Request details:
scope=https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/plus.moments.write https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.profile.agerange.read https://www.googleapis.com/auth/plus.profile.language.read https://www.googleapis.com/auth/plus.circles.members.read
redirect_uri=postmessage
state=303270744|0.3942616991
origin=http://localhost:4567
display=page
request_visible_actions=http://schemas.google.com/AddActivity
cookie_policy_enforce=false
response_type=code token id_token gsession
access_type=offline
cookie_policy=single_host_origin
proxy=oauth2relay678941372
client_id=933139289991-iigr70l8u8rbjecm6vrrs3bj4fck0ptu.apps.googleusercontent.com
authuser=0
我是否收到此错误,是因为我所遵循的教程非常过时,或者因为我没有正确执行步骤1 - 3b?
我该如何解决这个问题?我想要的只是登录到一个谷歌账户,如果有一个更简单的方法与python做,请随时让我知道:S
谢谢!有没有关于如何使用云端控制台的教程? –
目前还没有,因为云控制台尚未最终确定。但是你应该能够在'APIs&Auth' - >'Registered apps'下找到大部分相同的功能 – Prisoner