LiveChatBans
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
משאב liveChatBan
מזהה משתמש ב-YouTube וצ'אט בשידור חי ב-YouTube שהמשתמש נאסר עליו להשתתף בו.
Methods
ה-API תומך בשיטות הבאות למשאבי liveChatBans
:
- insert
- החרגת משתמש ספציפי מהצ'אט בשידור חי. בקשת ה-API צריכה להיות מאושרת על ידי הבעלים של הערוץ או על ידי מנהל התגובות בצ'אט בשידור חי שמשויך להחרגה.
כדאי לנסות עכשיו.
- מחיקה
- הסרת איסור שחוסם משתמש ספציפי מלשתף פעולה בצ'אט בשידור חי, וכך מאפשרת למשתמש להצטרף מחדש לצ'אט. בקשת ה-API צריכה להיות מאושרת על ידי הבעלים של הערוץ או על ידי מנהל התגובות בצ'אט בשידור חי שמשויך להחרגה.
כדאי לנסות עכשיו.
מאפיינים
בטבלה הבאה מפורטים המאפיינים שמופיעים במשאב הזה:
מאפיינים |
kind |
string
מזהה את סוג משאב ה-API. הערך יהיה youtube#liveChatBan . |
etag |
etag
ה-Etag של המשאב הזה. |
id |
string
המזהה שהוקצה על ידי YouTube לצורך זיהוי ייחודי של האיסור. |
snippet |
object
האובייקט snippet מזהה את המשתמש שהוחרם ומכיל פרטים על ההחרגה. |
snippet.liveChatId |
string
הצ'אט בשידור חי שאליו חל האיסור. מזהה הצ'אט בשידור חי שמשויך לשידור מוחזר במאפיין snippet.liveChatId של המשאב liveBroadcast . |
snippet.type |
string
סוג האיסור.
הערכים החוקיים למאפיין הזה הם:
|
snippet.banDurationSeconds |
unsigned long
משך ההשעיה. מגדירים ערך למאפיין הזה רק אם סוג האיסור הוא temporary . ערך ברירת המחדל הוא 300 (5 דקות). |
snippet.bannedUserDetails |
object
האובייקט הזה מכיל מידע שמזהה את המשתמש שנחסם. |
snippet.bannedUserDetails.channelId |
string
מזהה ערוץ YouTube של המשתמש שנחסם. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-06-06 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-06-06 (שעון UTC)."],[[["\u003cp\u003eA \u003ccode\u003eliveChatBan\u003c/code\u003e resource identifies a YouTube user who is banned from a specific YouTube live chat.\u003c/p\u003e\n"],["\u003cp\u003eThe API allows channel owners or moderators to insert a \u003ccode\u003eliveChatBan\u003c/code\u003e to ban a user or delete one to remove the ban.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eliveChatBan\u003c/code\u003e can be either permanent or temporary, and the duration of a temporary ban can be specified in seconds.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eliveChatBan\u003c/code\u003e resource's \u003ccode\u003esnippet\u003c/code\u003e object includes the ID of the live chat, the type of ban, the ban duration (if temporary), and details of the banned user.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eliveChatBan\u003c/code\u003e resource has properties such as \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, and \u003ccode\u003eid\u003c/code\u003e, which provide general information about the resource, such as the resource type, its ETag, and the ban's unique ID.\u003c/p\u003e\n"]]],["The `liveChatBan` resource manages user bans in YouTube live chats. Key actions include: inserting a ban (`insert`) to prevent a user from participating, and deleting a ban (`delete`) to allow a user to rejoin. The resource identifies the banned user, the live chat, ban type (`permanent` or `temporary`), and ban duration in seconds. The resource properties include `kind`, `etag`, and `id`. Authorization from the channel owner or a moderator is required for both inserting and deleting.\n"],null,[]]