android-NestDK卡住了pincode [英] android-NestDK stuck with pincode

查看:80
本文介绍了android-NestDK卡住了pincode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何将NestDK应用程序连接到nest API. 使用我的用户名和密码登录后,我得到一个使用此密码与Nest.XXXXXX连接"的信息.我应该怎么办呢? 我希望access_token请求在后台发生,但我陷在此页面上.

I'm trying to figure out how to connect my NestDK app to the nest API. After Login in with my user and password, I am getting a "Use this Pincode to connect with Nest. XXXXXX". What am I supposed to do with this ? I expected the access_token request to be happening in the background but I get stuck on this page.

我将REDIRECT_URL设置为 https://api.home.nest.com/oauth2/access_token?client_id= [myClientId]& code = AUTHORIZATION_CODE& client_secret = [myClientSecret]& grant_type = authorization_code

I set REDIRECT_URL to https://api.home.nest.com/oauth2/access_token?client_id=[myClientId]&code=AUTHORIZATION_CODE&client_secret=[myClientSecret]&grant_type=authorization_code

有什么主意吗?

谢谢

推荐答案

我终于找到了我的错误.

I finaly found my mistake.

REDIRECT_URL将在Nest开发人员网站的客户端注册页面中设置,而不仅仅是在Constants.java中设置.

The REDIRECT_URL is to be set in the client registration page on the nest developer website and NOT ONLY in Constants.java.

我在两个位置上都放了http://localhost/,它立即起作用.

I put http://localhost/ on both location and it worked immediatly.

这篇关于android-NestDK卡住了pincode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆