Queries the message list.
Operation description
QPS limits
The single-user QPS limit for this API operation is 100 queries per second (QPS). If the limit is exceeded, API calls will be throttled, which may affect your business. You can call the API operation properly to avoid this issue. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:ListMessage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The message group ID. |
AE35-****-T95F |
| AppId |
string |
Yes |
The interactive message application ID. |
VKL3*** |
| Type |
integer |
No |
The user-defined message type. The value must be greater than 10000. |
10002 |
| SortType |
integer |
No |
The sorting method. Valid values:
|
1 |
| PageNum |
integer |
Yes |
The page number. Default value: 1. Valid values: 1 to 100000. |
10 |
| PageSize |
integer |
Yes |
The number of users displayed per page. Default value: 20. Valid values: 1 to 50. |
20 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
16A96B9A-****-CB92E68F4CD8 |
| Result |
object |
The returned results. |
|
| HasMore |
boolean |
Indicates whether there is a next page. Valid values:
|
false |
| MessageList |
array |
The message list. |
|
|
object |
|||
| Data |
string |
The message body, in JSONString format. |
test |
| GroupId |
string |
The message group ID. |
AE35-****-T95F |
| MessageId |
string |
The message ID. |
qt*** |
| SenderId |
string |
The message sender ID. |
yi*** |
| Type |
integer |
The message type. |
10002 |
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-****-CB92E68F4CD8",
"Result": {
"HasMore": false,
"MessageList": [
{
"Data": "test",
"GroupId": "AE35-****-T95F",
"MessageId": "qt***",
"SenderId": "yi***",
"Type": 10002
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.