LiveChatModerators
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร liveChatModerator
แสดงถึงผู้ดูแลแชทสดของ YouTube ผู้ดูแลแชทสามารถแบนหรือเลิกแบนผู้ใช้จากแชท นำข้อความออก และดำเนินการด้านการดูแลระบบอื่นๆ สำหรับแชทสดได้
เมธอด
API รองรับวิธีการต่อไปนี้สําหรับทรัพยากร liveChatModerators
คำขอทั้งหมดต้องได้รับอนุญาตจากเจ้าของช่องของแชทสด
- list
- แสดงรายชื่อผู้ดูแลแชทสด
ลองใช้เลย
- แทรก
- เพิ่มผู้ดูแลคนใหม่ในแชท
ลองใช้เลย
- ลบ
- นำผู้ดูแลแชทออก
ลองใช้เลย
พร็อพเพอร์ตี้
ตารางต่อไปนี้จะกำหนดพร็อพเพอร์ตี้ที่ปรากฏในทรัพยากรนี้
พร็อพเพอร์ตี้ |
kind |
string
ระบุประเภทของทรัพยากร API ค่าจะเป็น youtube#liveChatModerator |
etag |
etag
Etag ของทรัพยากรนี้ |
id |
string
รหัสที่ YouTube กำหนดเพื่อระบุผู้ดูแลอย่างไม่ซ้ำกัน |
snippet |
object
ออบเจ็กต์ snippet มีรายละเอียดเกี่ยวกับผู้ดูแล |
snippet.moderatorDetails |
object
ออบเจ็กต์นี้มีรายละเอียดเกี่ยวกับผู้ดูแล |
snippet.moderatorDetails.channelId |
string
รหัสช่อง YouTube ของผู้ดูแล |
snippet.moderatorDetails.channelUrl |
string
URL ของช่อง YouTube ของผู้ดูแล |
snippet.moderatorDetails.displayName |
string
ชื่อที่แสดงของช่อง YouTube ของผู้ดูแล |
snippet.moderatorDetails.profileImageUrl |
string
URL รูปโปรไฟล์ของช่อง YouTube ของผู้ดูแล |
snippet.liveChatId |
string
รหัสของแชทสดที่ผู้ดูแลมีสิทธิ์จัดการ ระบบจะแสดงรหัสแชทสดที่เชื่อมโยงกับการออกอากาศในพร็อพเพอร์ตี้ snippet.liveChatId ของliveBroadcast ทรัพยากร |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-06-19 UTC
[null,null,["อัปเดตล่าสุด 2025-06-19 UTC"],[[["\u003cp\u003e\u003ccode\u003eliveChatModerator\u003c/code\u003e resources represent individuals with the authority to manage a YouTube live chat, including banning/unbanning users and removing messages.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to list, add, and delete moderators for a live chat, requiring authorization from the live chat's channel owner.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eliveChatModerator\u003c/code\u003e resource includes properties like \u003ccode\u003emoderatorDetails\u003c/code\u003e, \u003ccode\u003eliveChatId\u003c/code\u003e, \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, and \u003ccode\u003eid\u003c/code\u003e, providing comprehensive information about each moderator.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emoderatorDetails\u003c/code\u003e section of the resource provides specific information about the moderator, such as their channel ID, URL, display name, and profile image URL.\u003c/p\u003e\n"]]],["`liveChatModerator` resources manage YouTube live chat moderators. Moderators can ban/unban users and remove messages. The API methods include: `list` to view moderators, `insert` to add new ones, and `delete` to remove them. Each moderator resource contains properties like `kind`, `etag`, and `id`, alongside `snippet` details such as `moderatorDetails` (including `channelId`, `channelUrl`, `displayName`, and `profileImageUrl`) and the associated `liveChatId`. All requests require authorization from the live chat's channel owner.\n"],null,["# LiveChatModerators\n\nA **liveChatModerator** resource represents a moderator for a YouTube live chat. A chat moderator has the ability to ban or unban users from a chat, remove messages, and perform other administrative actions for the live chat.\n\nMethods\n-------\n\nThe API supports the following methods for `liveChatModerators` resources. All of the requests must be authorized by the owner of the live chat's channel.\n\n[list](/youtube/v3/live/docs/liveChatModerators/list)\n: Lists moderators for a live chat.\n [Try it now](/youtube/v3/live/docs/liveChatModerators/list#try-it).\n\n[insert](/youtube/v3/live/docs/liveChatModerators/insert)\n: Adds a new moderator for the chat.\n [Try it now](/youtube/v3/live/docs/liveChatModerators/insert#try-it).\n\n[delete](/youtube/v3/live/docs/liveChatModerators/delete)\n: Removes a chat moderator.\n [Try it now](/youtube/v3/live/docs/liveChatModerators/delete#try-it).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `liveChatModerators` resource: \n\n```text\n{\n \"kind\": \"youtube#liveChatModerator\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"moderatorDetails\": {\n \"channelId\": string,\n \"channelUrl\": string,\n \"displayName\": string,\n \"profileImageUrl\": string\n },\n \"liveChatId\": string\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|--------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#liveChatModerator`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube assigns to uniquely identify the moderator. |\n| `snippet` | `object` The `snippet` object contains details about the moderator. |\n| snippet.`moderatorDetails` | `object` This object contains details about the moderator. |\n| snippet.moderatorDetails.`channelId` | `string` The moderator's YouTube channel ID. |\n| snippet.moderatorDetails.`channelUrl` | `string` The URL of the moderator's YouTube channel. |\n| snippet.moderatorDetails.`displayName` | `string` The display name of the moderator's YouTube channel. |\n| snippet.moderatorDetails.`profileImageUrl` | `string` The avatar URL of the moderator's YouTube channel. |\n| snippet.`liveChatId` | `string` The ID of the live chat that the moderator has privileges to administer. The live chat ID associated with a broadcast is returned in the `liveBroadcast` resource's `snippet.liveChatId` property. |"]]