执行以下网址列出的步骤后,我无法授权帐户:https://developers.google.com/nest/device-access/get-started
这些步骤是:
使用此URL尝试获取授权码:
https://nestservices.google.com/partnerconnections/project-id/auth?
redirect_uri=https://www.google.com&
access_type=offline&
prompt=consent&
client_id=oauth2-client-id&
response_type=code&
scope=https://www.googleapis.com/auth/sdm.service
是的,我用设备访问控制台中的项目ID和步骤3中的OAuth客户端ID替换了项目ID。我从步骤1和2中选择了Google帐户。
我仍然在浏览器中看到以下错误消息:
无法链接到[项目名称]
我从没有收到允许该项目访问我的Google帐户的提示(此处的第3-5步)。
谢谢您的帮助。
当您使用Google页面上的内置复制功能时,它将复制以下代码:
https://nestservices.google.com/partnerconnections/project-id/auth?
redirect_uri=https://www.google.com&
access_type=offline&
prompt=consent&
client_id=oauth2-client-id&
response_type=code&
scope=https://www.googleapis.com/auth/sdm.service
但是,当您进入浏览器时,每个&后面都有空格。因此,您需要手动删除空格以实际使用正确的URL。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句