Skip to content

模板列表 ​

返回当前可用、已启用的胸牌模板。templateId 用于 按模板下发。

项说明
方向你 → 平台
方法GET
路径/openapi/v1/devices/templates
HeaderAuthorization: Bearer <accessToken>

响应 ​

json
{
  "templates": [
    {
      "templateId": 1,
      "name": "模板一",
      "previewPng": "<标准 Base64,PNG,不含 data:image 前缀>"
    }
  ]
}
参数名类型必传描述
templatesarray是模板列表
templates[].templateIdint是模板 ID
templates[].namestring是模板名称
templates[].previewPngstring否预览图。标准 Base64 的 PNG