0

我在设备访问控制台中创建了项目并建立了我的 OAuth。当我将我的项目和 id 添加到脚本中时,我在浏览器中收到以下错误:

无法链接到 NewHA

我是新手 - 所以任何建议都值得赞赏

4

1 回答 1

-1

首先当您提出第一个请求时:

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```

the `project_id` references to the sandbox project_id.

https://developers.google.com/nest/device-access/authorize?authuser=4#link_your_account
"Open the following link in a web browser, **replacing project-id with your Device Access Project ID** and oauth2-client-id with the OAuth2 Client ID from your GCP Credentials"


**another issue you may have** can happen from the account you used to open the device-access-Project. **it must be a private and not G suit account** (ending with @gmail.com and not @comapyName.com).
this is because the nest doesn't let you create a G Suit account (https://stackoverflow.com/questions/64074857/pcm-no-access-to-partner) 

and you can't invite a private nest user to your google home while using the G suit user (as this isn't possible)- 
https://support.google.com/googlenest/thread/426784?hl=en&msgid=560455
so even if you created the 'sandbox' with the G-suitaccount you can't use it to invite a private user (and will have to re open the account and pay again 5$)
于 2020-10-08T12:06:57.917 回答