資源:LiveChatBan
liveChatBan 資源會識別 YouTube 使用者,以及禁止該使用者參與的 YouTube 直播聊天室。
| JSON 表示法 |
|---|
{ "kind": string, "etag": string, "id": string, "snippet": { "liveChatId": string, "type": enum, "banDurationSeconds": string, "bannedUserDetails": { "channelId": string, "channelUrl": string, "displayName": string, "profileImageUrl": string } } } |
| 欄位 | |
|---|---|
kind |
僅供輸出。識別這是哪種資源。值:固定字串 |
etag |
僅供輸出。這項資源的 Etag。 |
id |
僅供輸出。YouTube 指派的 ID,用於明確識別禁言。 |
snippet |
必填。 |
snippet.liveChatId |
必填。僅供輸入。要封鎖的聊天室。與直播相關聯的聊天室 ID 會在 |
snippet.type |
必填。封鎖類型。 這個列舉欄位的有效值如下:
|
snippet.banDurationSeconds |
(選填) 僅供輸入。封鎖時間長度 (以秒為單位)。只有在封鎖類型為 |
snippet.bannedUserDetails |
必填。用於識別遭停權的使用者。在 |
snippet.bannedUserDetails.channelId |
YouTube 頻道 ID。 |
snippet.bannedUserDetails.channelUrl |
頻道網址。 |
snippet.bannedUserDetails.displayName |
頻道的顯示名稱。 |
snippet.bannedUserDetails.profileImageUrl |
頻道的顯示圖片網址。 |
方法 |
|
|---|---|
|
移除永久封鎖,讓特定使用者能重新加入聊天室並發言。 |
|
禁止特定使用者參與聊天室。 |