Mengkueri detail pengguna online di suatu saluran.
Deskripsi operasi
You can call this operation to query information about online users in a channel, such as the total number of users during live streaming.
QPS limit
You can call this operation up to 100 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeChannelUsers |
list |
*Rtc
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. Anda hanya dapat menentukan satu ID aplikasi di permintaan. |
aec**** |
| ChannelId |
string |
Yes |
ID saluran. Anda hanya dapat menentukan satu ID saluran di permintaan. |
testId |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
AD86847D-1F36-18C8-A995-5EEA340B3202 |
| Timestamp |
integer |
The UTC timestamp when the response is returned. |
1691027655 |
| IsChannelExists |
boolean |
Indicates whether the channel exists. Valid values:
Catatan
After all users leave the channel, the system requires a few seconds to clear the cache. If you call the operation during this period, the value of this parameter is true, and the value of InteractiveUserNumber and LiveUserNumber is 0. |
true |
| InteractiveUserNumber |
integer |
The number of co-streamers. |
1 |
| LiveUserNumber |
integer |
The number of viewers. |
1 |
| InteractiveUserList |
array |
The list of streamers/co-streamers. |
|
|
string |
Interactive user list. |
aaa |
|
| LiveUserList |
array |
The list of viewers. |
|
|
string |
Viewer list, up to 1000 people returned. |
bbb |
Contoh
Respons sukses
JSONformat
{
"RequestId": "AD86847D-1F36-18C8-A995-5EEA34******",
"Timestamp": 1691027655,
"IsChannelExists": true,
"InteractiveUserNumber": 1,
"LiveUserNumber": 1,
"InteractiveUserList": [
"aaa"
],
"LiveUserList": [
"bbb"
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | 400 | InvalidInput | |
| 401 | 401 | InvalidAuth | |
| 500 | 500 | SystemError, Please Check App And Channel Exists, RETRY | |
| 404 | 404 | AppOrChannelNotExists |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.