Skip to content

Commit 8fa3ac7

Browse files
committed
Merge branch 'staging' of github.com:/AgoraIO/Doc-Source-Private into staging
2 parents 1a71d5a + bd7d61e commit 8fa3ac7

File tree

11 files changed

+44
-48
lines changed

11 files changed

+44
-48
lines changed

shared/common/_channel-management-api.mdx

Lines changed: 20 additions & 24 deletions
Large diffs are not rendered by default.

shared/common/channel-management-api/endpoints/ban-user-privileges/create-rules.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ Pass in the following parameters in the request body:
7676

7777
| Parameter | Data type | Required/Optional | Description |
7878
| :------ | :----- |:----- | :---------------------- |
79-
| `appid` | String | Required |The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link></li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li>|
79+
| `appid` | String | Required |The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link></li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul>|
8080
| `cname` | String | Optional |The channel name. |
8181
| `uid` | Number | Optional |The user ID. Do not set it as `0`. |
8282
| `ip` | String | Optional |The IP address of the user. Do not set it as `0`. |
83-
| `time` | Number | Required |The time duration (in minutes) to ban the user. The value range is [1,1440].<p> **Note**<li>If the set value is between `0` and `1`, Agora automatically sets the value to `1`.</li><li>If the set value is greater than `1440`, Agora automatically sets the value to `1440`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></p> |
84-
| `time_in_seconds` | Number | Required |The time duration (in seconds) to ban the user. The value range is [10,86430].<p>**Note**<li>If the set value is between `0` and `10`, Agora automatically sets the value to `10`.</li><li>If the set value is greater than `86430`, Agora automatically sets the value to `86430`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></p> |
85-
| `privileges` | Array | Required |The user privileges you want to block. You can choose the following values: <li> `join_channel`: String. Bans a user from joining a channel or kicks a user out of a channel.</li><li> `publish_audio`: String. Bans a user from publishing audio. </li><li> `publish_video`: Bans a user from publishing video. </li>You can pass in both `publish_audio` and `publish_video` to ban a user from publishing audio and video. |
83+
| `time` | Number | Required |The time duration (in minutes) to ban the user. The value range is [1,1440].<br/> <ul><li>If the set value is between `0` and `1`, Agora automatically sets the value to `1`.</li><li>If the set value is greater than `1440`, Agora automatically sets the value to `1440`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></ul> |
84+
| `time_in_seconds` | Number | Required |The time duration (in seconds) to ban the user. The value range is [10,86430].<br/><ul><li>If the set value is between `0` and `10`, Agora automatically sets the value to `10`.</li><li>If the set value is greater than `86430`, Agora automatically sets the value to `86430`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></ul> |
85+
| `privileges` | Array | Required |The user privileges you want to block. You can choose the following values: <ul><li> `join_channel`: String. Bans a user from joining a channel or kicks a user out of a channel.</li><li> `publish_audio`: String. Bans a user from publishing audio. </li><li> `publish_video`: Bans a user from publishing video. </li></ul> You can pass in both `publish_audio` and `publish_video` to ban a user from publishing audio and video. |
8686

8787
### Request examples
8888

shared/common/channel-management-api/endpoints/ban-user-privileges/delete-rules.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The following parameters are required in the request body:
2929

3030
| Parameter | Type | Required/Optional | Description |
3131
| :------ | :----- |:----- | :---------------------- |
32-
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li>|
32+
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul>|
3333
| `id` | Number | Required | The ID of the rule that you want to delete. |
3434

3535
### Request examples

shared/common/channel-management-api/endpoints/ban-user-privileges/get-rule-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pass the following query parameters in the request URL:
2828

2929
| Parameter | Type | Required/Optional |Description |
3030
| :------ | :---------------- |:------| :------------------------------ |
31-
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li> |
31+
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul> |
3232

3333
**Request header**
3434

shared/common/channel-management-api/endpoints/ban-user-privileges/update-expiration-time.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ Pass in the following parameters in the request body:
3030

3131
| Parameter | Type |Required/Optional | Description |
3232
| :---------------- | :-----|:----- | :--------------------------------------- |
33-
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li> |
33+
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul> |
3434
| `id` | Number | Required |The ID of the rule that you want to update. |
35-
| `time` | Number | Required | The time duration (in minutes) to ban the user. The value range is [1,1440].<p> **Note**<li>If the set value is between `0` and `1`, Agora automatically sets the value to `1`.</li><li>If the set value is greater than `1440`, Agora automatically sets the value to `1440`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></p>|
36-
| `time_in_seconds` | Number | Required | The time duration (in seconds) to ban the user. The value range is [10,86430].<p>**Note**<li>If the set value is between `0` and `10`, Agora automatically sets the value to `10`.</li><li>If the set value is greater than `86430`, Agora automatically sets the value to `86430`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></p> |
35+
| `time` | Number | Required | The time duration (in minutes) to ban the user. The value range is [1,1440].<br/> <ul><li>If the set value is between `0` and `1`, Agora automatically sets the value to `1`.</li><li>If the set value is greater than `1440`, Agora automatically sets the value to `1440`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></ul>|
36+
| `time_in_seconds` | Number | Required | The time duration (in seconds) to ban the user. The value range is [10,86430].<ul><li>If the set value is between `0` and `10`, Agora automatically sets the value to `10`.</li><li>If the set value is greater than `86430`, Agora automatically sets the value to `86430`.</li><li>If the set value is `0`, the banning rule does not take effect. The server sets all users that conform to the rule offline, and users can log in again to rejoin the channel.</li><li>Use either `time` or `time_in_seconds`. If you set both parameters, the `time_in_seconds` parameter takes effect; if you set neither of these parameters, the Agora server automatically sets the banning time duration to 60 minutes, that is, 3600 seconds.</li></ul> |
3737

3838
### Request examples
3939
Test this request in [Postman](https://documenter.getpostman.com/view/6319646/SVSLr9AM#ed57bf68-671c-4a1d-93ed-e545d9901745) or use one of the following code examples:
@@ -107,7 +107,7 @@ If the status code is `200`, the request succeeds, and the response body include
107107
| Parameter | Type | Description |
108108
| :-------- | :----- | :----------------------------------------------------------- |
109109
| `status` | String | The status of this request. `success` means the request succeeds. |
110-
| `result` | Object | The result of the update:<li>`id`: String. The rule ID.</li><li>`ts`: String. The UTC time when the rule expires.</li> |
110+
| `result` | Object | The result of the update:<ul><li>`id`: String. The rule ID.</li><li>`ts`: String. The UTC time when the rule expires.</li></ul> |
111111

112112
### Response example
113113

shared/common/channel-management-api/endpoints/query-channel-information/query-channel-list.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ Pass the following path parameters in the request URL:
2222

2323
| Parameter | Type | Required/Optional | Description |
2424
| :------ | :----- |:----- | :---------------------- |
25-
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li>|
25+
| `appid` | String | Required | The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul>|
2626

2727
**Query parameters**
2828

2929
Pass the following query parameters in the request URL:
3030

3131
| Parameter | Type | Required/Optional | Description |
3232
| :------ | :----- |:----- | :---------------------- |
33-
| `page_no` | Number | Optional | The page number that you want to query. The default value is 0, that is, the first page. <p>**Note**: The value of `page_no` cannot exceed (the total number of channels/the value of `page_size` - 1); otherwise, the specified page does not contain any channel.</p> |
33+
| `page_no` | Number | Optional | The page number that you want to query. The default value is 0, that is, the first page. **Note**: The value of `page_no` cannot exceed (the total number of channels/the value of `page_size` - 1); otherwise, the specified page does not contain any channel. |
3434
| `page_size` | Number | Optional | The number of channels on a page. The value range is [1,500], and the default value is 100. |
3535

3636
**Request header**
@@ -98,7 +98,7 @@ If the status code is `200`, the request succeeds, and the response body include
9898

9999
| Parameter | Type | Description |
100100
| :-------- | :------ | :----------------------------------------------------------- |
101-
| `success` | Boolean | The state of this request: <li>`true`: Success. </li><li>`false`: Reserved for future use.</li> |
101+
| `success` | Boolean | The state of this request: <ul><li>`true`: Success. </li><li>`false`: Reserved for future use.</li></ul> |
102102
| `data` | Object | Channel statistics, including the following fields: <ul><li>`channels`: Array. The list of channels. This array contains multiple objects. Each object shows the information on a channel and includes the following fields:<ul><li>`channel_name`: String. The channel name. </li><li>`user_count`: Number. The total number of users in the channel. </li></ul>**Note**: If the specified page does not contain any channel, this field is empty.</li><li>`total_size`: Number. The total number of channels under the specified project.</li></ul> |
103103

104104
### Response example

shared/common/channel-management-api/endpoints/query-channel-information/query-host-list.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pass the following path parameters in the request URL:
2222

2323
| Parameter | Type | Required/Optional | Description |
2424
| :------ | :----- |:----- | :---------------------- |
25-
| `appid` | String | Required |The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li>|
25+
| `appid` | String | Required |The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul> |
2626
| `channelName` | String | Required | The channel name. |
2727

2828
**Request header**
@@ -89,7 +89,7 @@ If the status code is `200`, the request succeeds, and the response body include
8989

9090
| Parameter | Type | Description |
9191
| :-------- | :------ | :----------------------------------------------------------- |
92-
| `success` | Boolean | The state of this request:<li>`true`: Success.</li><li>`false`: Reserved for future use.</li> |
92+
| `success` | Boolean | The state of this request:<ul><li>`true`: Success.</li><li>`false`: Reserved for future use.</li></ul> |
9393
| `data` | Object | User information, including the following fields: <ul><li>`channel_exist`: Boolean. Whether the specified channel exists:<ul><li>`true`: The channel exists.</li><li>`false`: The channel does not exist.</li></ul>**Note**: All other fields are not returned when the value of `channel_exist` is `false`.</li><li>`mode`: Number. The channel profile:<ul><li>`1`:The `COMMUNICATION` profile.</li><li>`2`: The `LIVE_BROADCASTING` profile.</li></ul></li><li>`broadcasters`:Array. User IDs of all hosts in the channel. This field is returned only when `mode` is `2`.</li></ul> |
9494

9595
### Response example

shared/common/channel-management-api/endpoints/query-channel-information/query-user-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Pass the following path parameters in the request URL:
2525

2626
| Parameter | Type | Required/Optional | Description |
2727
| :------ | :----- |:----- | :---------------------- |
28-
| `appid` | String | Required |The App ID of the project. You can get it through one of the following methods:<li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li>|
28+
| `appid` | String | Required |The App ID of the project. You can get it through one of the following methods:<ul><li>Copy from the <Link to="{{Global.AGORA_CONSOLE_URL}}"><Vg k="CONSOLE" /></Link>.</li><li> Call the [Get all projects](/interactive-live-streaming/reference/agora-console-rest-api#get-all-projects) API, and read the value of the `vendor_key` field in the response body.</li></ul>|
2929
| `channelName` | String | Required | The channel name. |
3030
| `hosts_only` | String |Optional|If you fill in this parameter, only the host list in the live broadcast use-case will be returned.|
3131

0 commit comments

Comments
 (0)