# 获取场景组接口

新增获取区域和场景组获取接口用于新建场景试用

# 接口说明

host path method content-type
open.wecard.qq.com /cgi-bin/device/guard/get-area POST application/json

# 请求参数

{
  "access_token": "EdxvGtXTmiYOhnwYpDJ1cz4CyGdgcy3I",
}
参数 必填 类型 说明
access_token ✔️ string 接口请求凭证

# 响应参数

{
  "errcode": 0,
  "errmsg": "success",
  "data": [
    {
      "parent_id": 1,
      "area_id": 2,
      "area_name": "东门"
    },
    {
      "parent_id": 1,
      "area_id": 3,
      "area_name": "西门"
    }
  ]
}

# data 中的参数说明

参数 类型 说明
parent_id int64 场景组的上级ID
area_id string 场景组ID
area_name string 场景组名称
scene_area_name string 区域名称
scene_area_id string 区域id