简体   繁体   English

如何通过其他嵌套开发者帐户访问我的恒温器数据?

[英]How to access my thermostat data through other nest developer account?

I had instslled nest thermostat in my home (its really wonderful). 我家里有嵌入式恒温器(非常棒)。 I also created one nest devloper account om nest developers site. 我还创建了一个嵌套开发人员帐户om nest开发者网站。 So i want to access (for ex. Deviceid or device name ) of my thermostat details through my nest developer account. 所以我想通过我的嵌套开发者帐户访问(例如,Deviceid或设备名称)我的恒温器详细信息。 How i can achive this? 我怎么能做到这一点?

I also tried following steps. 我也尝试了以下步骤。 But its unsuccessful. 但它不成功。

  1. Sign up nest developer account. 注册嵌套开发者帐户。
  2. Created a cloud application. 创建了一个云应用程序。
  3. I got the product id,product secret and authorization code. 我得到了产品ID,产品密码和授权码。
  4. I added my nest thermostat account to in family account. 我将我的巢温控器帐户添加到家庭帐户中。
  5. I got the token and called device_id API using the token. 我获得了令牌并使用令牌调用了device_id API。 But got the error as 401 unauthorized. 但得到的错误是未经授权的401。

Please can some one help on this? 有人可以帮忙吗?

Once you have an access token, you should be able to retrieve all the device details using that access token. 获得访问令牌后,您应该能够使用该访问令牌检索所有设备详细信息。 See API Read Examples for examples on how to use the access token. 有关如何使用访问令牌的示例,请参阅API读取示例

Also, when using Family Accounts , keep in mind that only the structure owner can access the device information through the API. 此外,使用系列帐户时 ,请记住只有结构所有者才能通过API访问设备信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM