我正在使用Chrome的邮递员扩展来确定为什么NestDK iOS应用程序在我们登录后没有显示恒温器,并决定尝试一个REST请求来查看返回的内容。我将https://developer-api.nest.com?auth=输入到邮递员界面并做一个GET。
我得到下面的响应,在结构数据元素中定义了一个恒温器,但是没有设备数据元素。我知道设备是连接的,因为当我从家里切换到外地时,“离开”设置会被修改。为什么没有设备?
{
"structures": {
"<structure_id>": {
"name": "Home",
"country_code": "US",
"time_zone": "America/New_York",
"away": "away",
"thermostats": [
"<thermometer_id>"
],
"structure_id": "<structure_id>"
}
},
"metadata": {
"access_token": "<accessToken>",
"client_version": 1
}
}发布于 2015-02-27 23:07:08
检查您的客户权限。确保您选择了温控器读或温控器读/写。
https://stackoverflow.com/questions/28702537
复制相似问题