调用该接口获取共享通知列表。
路径 | /uc/getShareNoticeList |
版本号 | 1.0.9 |
协议 | HTTPS |
请求方法 | POST |
是否需要用户身份鉴权 | 是 |
超时时间 | 3000 |
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
pageNo | Int | 是 | 1 | 当前页号,从1开始的页序号。 |
pageSize | Int | 是 | 100 | 页大小,单页item的数量上限,最大值为200。如果传入的值超过200,系统会自动按照200条来查询。 |
groupBy | String | 否 | BATCH | 是否按照批次的方式来获取通知列表,默认是NONE。可取值为:NONE(表示不作 groupBy 处理);BATCH(表示同一批次的分享只会有一条通知)。 |
返回数据
示例
请求示例
{
"id": "1509086454180",
"version": "1.0",
"request":{
"apiVer": "1.0.9",
"iotToken": "token"
},
"params":{
"pageNo":1,
"pageSize":100,
"groupBy": "BATCH"
}
}
正常返回示例
JSON
格式
{
"code": 200,
"data": [
{
"initiatorIdentityId":"aef3wwee*5435",
"receiverIdentityId":"y2Z1oZFWxxxxxxxx0101",
"gmtCreate": "15275845255",
"gmtModified": "15235845255",
"targetId": "fy2Z1oZFWxxxxxxxx0101edf00",
"categoryImage": "http://xxx",
"description": "向15163587365共享设备中,待对方确认",
"targetType": "DEVICE",
"recordId": "a1OwEjYxxxxdfdFJNb",
"batchId": "ACCOUNT_DEV_SHARE_3fbd910a-xxxxxx-09aabf5fe5b5",
"deviceName": "b65cb59xxxxxxxxxxcd695fb",
"productName": "0dxxxx195",
"initiatorAlias":"分享者",
"receiverAlias":"被分享者",
"isReceiver": 0,
"status": -1
}
],
"id": "e2d74ffe-308e-xxxx-xxxx-9b44a43eabc9"
}
异常返回示例
JSON
格式
{
"code":2062,
"id":"4fa207ca-fffd-xxxx-xxxx-e6f7ca6c99c3",
"localizedMsg":"请求错误",
"message":"identityId not exist"
}