liveChatModerator
資源代表 YouTube 直播聊天室的管理員。聊天室管理員可以封鎖或解除使用者的聊天室權限、移除訊息,以及執行其他直播聊天室管理動作。
方法
這個 API 支援 liveChatModerators
資源的下列方法。所有要求都必須由直播聊天頻道的擁有者授權。
資源表示法
以下 JSON 結構顯示 liveChatModerators
資源的格式:
{ "kind": "youtube#liveChatModerator", "etag": etag, "id": string, "snippet": { "moderatorDetails": { "channelId": string, "channelUrl": string, "displayName": string, "profileImageUrl": string }, "liveChatId": string } }
屬性
下表定義了這個資源中顯示的屬性:
屬性 | |
---|---|
kind |
string 識別 API 資源的類型。值為 youtube#liveChatModerator 。 |
etag |
etag 這項資源的 Etag。 |
id |
string YouTube 指派的 ID,用於識別管理員。 |
snippet |
object snippet 物件包含管理員的詳細資料。 |
snippet.moderatorDetails |
object 這個物件包含版主相關詳細資料。 |
snippet.moderatorDetails.channelId |
string 審核人員的 YouTube 頻道 ID。 |
snippet.moderatorDetails.channelUrl |
string 版主 YouTube 頻道的網址。 |
snippet.moderatorDetails.displayName |
string 版主 YouTube 頻道的顯示名稱。 |
snippet.moderatorDetails.profileImageUrl |
string 版主 YouTube 頻道的顯示圖片網址。 |
snippet.liveChatId |
string 管理員有權管理的聊天室 ID。與廣播活動相關聯的即時通訊 ID 會在 liveBroadcast 資源的 snippet.liveChatId 屬性中傳回。 |