Last Updated on : 2022-01-24 10:16:30
Query the messages on pages.
GET: /v1.0/sdf/notifications/messages
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
recipient_id | String | query | true | The ID of a specified recipient. |
message_type | String | query | false | The message type. Valid values:
|
message_sub_type | String | query | false | The message sub-type. Valid values:
|
read_flag | String | query | false | Specifies whether a message is read. Valid values:
|
page_no | Integer | query | false | The current page number. |
page_size | Integer | query | false | The number of items returned on each page. |
Parameter name | Type | Description |
---|---|---|
result | PageRes | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Integer | The total items. |
list | List | The list of data. |
has_more | Boolean | Specifies whether to return the next page. |
Description of list
Parameter name | Type | Description |
---|---|---|
message_id | String | The message ID. |
message_category | String | The message category. |
message_category_description | String | The description of a specified message category. |
message_type | String | The message type. |
message_type_description | String | The description of a specified message type. |
message_sub_type | String | The message sub-type. |
message_title | String | The title of a specified message. |
message_content | String | The content of a specified message. |
create_time | String | The time when it is created. |
read_status | String | Specifies whether a message is read. Valid values:
|
GET: /v1.0/sdf/notifications/messages?recipient_id=bay163****&message_type=1&message_sub_type=41&read_flag=0&page_no=1&page_size=10
{
"result": {
"list": [
{
"create_time": "2021-11-22 06:15",
"message_title": "Device offline",
"message_category": "PLATFORM",
"read_status": "0",
"message_id": "6162****",
"message_type": "1",
"message_type_description": "Device message",
"message_content": "Real 00 (6c027****) is offline",
"message_category_description": "Platform",
"message_sub_type": "41"
},
{
"create_time": "2021-11-21 21:03",
"message_title": "Device offline",
"message_category": "PLATFORM",
"read_status": "0",
"message_id": "6110****",
"message_type": "1",
"message_type_description": "Device message",
"message_content": "The aroma diffuser (33071012****) is offline",
"message_category_description": "Platform",
"message_sub_type": "41"
}
],
"total": 2,
"has_more": true
},
"t": 1637564235282,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback