Queries whether a user is in an interactive messaging group.
Operation description
Before you call this operation, make sure that you have called the CreateLiveMessageGroup operation to create an interactive messaging group.
QPS limit
You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:CheckLiveMessageUsersInGroup |
none |
*Rtc
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. |
demo |
| GroupId |
string |
Yes |
The group ID. |
grouptest |
| UserIds |
array |
Yes |
The list of users that you want to query. |
|
|
string |
Yes |
The user ID. Separate multiple user IDs with commas (,). The number of users to query in each call can range from 1 to 10. |
uid |
|
| DataCenter |
string |
No |
The data center. It must be the same as the data center that was specified when you called the CreateLiveMessageApp operation to create the interactive messaging application. Valid values: cn-shanghai and ap-southeast-1 (Singapore). |
cn-shanghai |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F1F68D81-1543-1FE4-B56E-82200DD2**** |
| Users |
array<object> |
The list of users queried. |
|
|
object |
|||
| UserId |
string |
The ID of the user. |
uid1 |
| Online |
boolean |
Indicates whether the user is in the group. |
false |
Examples
Success response
JSON format
{
"RequestId": "F1F68D81-1543-1FE4-B56E-82200DD2****",
"Users": [
{
"UserId": "uid1",
"Online": false
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InputInvalid | %s. | Illegal input parameters |
| 500 | ServerError | %s. | Unknown error, please try again later or submit a ticket for consultation. |
| 403 | NoAuth | %s. | No permission |
| 404 | ResourceNotExist | %s. | The requested resource does not exist, please check and try again |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.