目录 (Table of Contents)

PUSH和通知

查询所有通知

接口描述

查询所有通知

URL

 /notify

HTTP Method

GET

请求参数

返回参数

参数名称 是否必须 类型 描述
notifyList true jsonArray 通知list
notifyId true int 通知编码
notifyName true string 通知名称

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":"短信回执通知"}
            ...
        ]
    }
}

results matching ""

    No results matching ""