1.5.6 通知类API

优质
小牛编辑
128浏览
2023-12-01

查询所有通知

接口描述

查询所有通知

URL

 /notify

HTTP Method

GET

请求参数

返回参数

参数名称是否必须类型描述
notifyListtruejsonArray通知list
notifyIdtrueint通知编码
notifyNametruestring通知名称

HTTP请求示例

GET  /notify  HTTP/1.1
Host: api.miot.10046.mi.com
Date: Thu, 15 May 2018 11:18:32 GMT
H-XM-AppId: 开放平台分配给接入方的appId
Authorization: 参见 Authorization加签规则
H-XM-V: 2.0   //接口版本号
Content-Type: application/json;charset=UTF-8

成功响应示例

HTTP/1.1 200 OK
Date: Thu, 15 May 2018 11:18:32 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 556
Connection: keep-alive
Server: resin4.0.13
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 1
X-RateLimit-Reset: 60
{
    "rtnCode": 0
    "rtnMsg": "success"
    "data":{
        "notifyList":[
            {"notifyId":12312,"notifyName":"号码生命周期通知"},
            {"notifyId":12310,"notifyName":"短信回执通知"}
            ...
        ]
    }
}