LiveChatBans
با مجموعهها، منظم بمانید
ذخیره و دستهبندی محتوا براساس اولویتهای شما.
یک منبع liveChatBan
یک کاربر YouTube و یک چت زنده YouTube را شناسایی می کند که کاربر از شرکت در آن منع شده است.
مواد و روش ها
API از روش های زیر برای منابع liveChatBans
پشتیبانی می کند:
- insert
- یک کاربر خاص را از شرکت در چت زنده منع می کند. درخواست API باید توسط مالک کانال یا ناظر چت زنده مرتبط با ممنوعیت مجاز باشد. اکنون آن را امتحان کنید .
- delete
- ممنوعیتی را که مانع از مشارکت یک کاربر خاص در یک چت زنده میشود، حذف میکند و در نتیجه کاربر را قادر میسازد دوباره به چت ملحق شود. درخواست 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 شناسه کانال یوتیوب کاربر ممنوعه. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2023-02-22 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2023-02-22 بهوقت ساعت هماهنگ جهانی."],[[["A `liveChatBan` resource identifies a YouTube user who is banned from a specific YouTube live chat."],["The API allows channel owners or moderators to insert a `liveChatBan` to ban a user or delete one to remove the ban."],["A `liveChatBan` can be either permanent or temporary, and the duration of a temporary ban can be specified in seconds."],["The `liveChatBan` resource's `snippet` object includes the ID of the live chat, the type of ban, the ban duration (if temporary), and details of the banned user."],["The `liveChatBan` resource has properties such as `kind`, `etag`, and `id`, which provide general information about the resource, such as the resource type, its ETag, and the ban's unique ID."]]],["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"]]