Nest-API Thermostat设备未在REST请求中显示

时间:2015-02-24 17:36:30

标签: ios rest nest-api

我使用Chrome的Postman扩展程序来确定为什么NestDK iOS应用程序在我们登录后没有显示恒温器,并决定尝试REST请求以查看返回的内容。我将https://developer-api.nest.com?auth=输入到Postman界面并进行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
    }
}

1 个答案:

答案 0 :(得分:1)

检查您的客户端权限。确保选择了恒温器读数或恒温器读/写。

Available Permissions