LiveChatBans
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি liveChatBan
সংস্থান একটি YouTube ব্যবহারকারী এবং একটি YouTube লাইভ চ্যাট সনাক্ত করে যেটিতে ব্যবহারকারীকে অংশগ্রহণ করা থেকে নিষিদ্ধ করা হয়েছে৷
পদ্ধতি
API liveChatBans
সংস্থানগুলির জন্য নিম্নলিখিত পদ্ধতিগুলিকে সমর্থন করে:
- insert
- একটি নির্দিষ্ট ব্যবহারকারীকে লাইভ চ্যাটে অংশগ্রহণ করা থেকে নিষিদ্ধ করে। API অনুরোধটি অবশ্যই চ্যানেলের মালিক বা নিষেধাজ্ঞার সাথে যুক্ত লাইভ চ্যাটের একজন মডারেটর দ্বারা অনুমোদিত হতে হবে। এখনই চেষ্টা করে দেখুন ।
- delete
- একটি নিষেধাজ্ঞা সরিয়ে দেয় যা একটি নির্দিষ্ট ব্যবহারকারীকে লাইভ চ্যাটে অবদান রাখতে বাধা দেয়, যার ফলে ব্যবহারকারীকে চ্যাটে পুনরায় যোগদান করতে সক্ষম করে। API অনুরোধটি অবশ্যই চ্যানেলের মালিক বা নিষেধাজ্ঞার সাথে যুক্ত লাইভ চ্যাটের একজন মডারেটর দ্বারা অনুমোদিত হতে হবে। এখনই চেষ্টা করে দেখুন ।
বৈশিষ্ট্য
নিম্নলিখিত সারণী এই সম্পদে প্রদর্শিত বৈশিষ্ট্যগুলিকে সংজ্ঞায়িত করে:
বৈশিষ্ট্য |
---|
kind | string API সম্পদের ধরন সনাক্ত করে। মান হবে youtube#liveChatBan । |
etag | etag এই সম্পদের Etag. |
id | string ইউটিউব যে আইডিটি নির্দিষ্ট করে নিষেধাজ্ঞাটিকে স্বতন্ত্রভাবে চিহ্নিত করে। |
snippet | object snippet অবজেক্ট নিষিদ্ধ ব্যবহারকারীকে শনাক্ত করে এবং নিষেধাজ্ঞা সম্পর্কে বিশদ বিবরণ ধারণ করে। |
snippet. liveChatId | string যে লাইভ চ্যাটে নিষেধাজ্ঞা প্রযোজ্য। একটি সম্প্রচারের সাথে যুক্ত লাইভ চ্যাট আইডি liveBroadcast রিসোর্সের snippet.liveChatId প্রপার্টিতে ফেরত দেওয়া হয়। |
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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-06-06 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["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,["# LiveChatBans\n\nA **liveChatBan** resource identifies a YouTube user and a YouTube live chat that the user is banned from participating in.\n\nMethods\n-------\n\nThe API supports the following methods for `liveChatBans` resources:\n\n[insert](/youtube/v3/live/docs/liveChatBans/insert)\n: Bans a specific user from participating in the live chat. The API request must be authorized by the channel owner or a moderator of the live chat associated with the ban.\n [Try it now](/youtube/v3/live/docs/liveChatBans/insert#try-it).\n\n[delete](/youtube/v3/live/docs/liveChatBans/delete)\n: Removes a ban that prevents a specific user from contributing to a live chat, thereby enabling the user to rejoin the chat. The API request must be authorized by the channel owner or a moderator of the live chat associated with the ban.\n [Try it now](/youtube/v3/live/docs/liveChatBans/delete#try-it).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `liveChatBans` resource: \n\n```carbon\n{\n \"#kind\": \"youtube#liveChatBan\",\n \"#etag\": etag,\n \"#id\": string,\n \"#snippet\": {\n \"#snippet.liveChatId\": string,\n \"#snippet.type\": string,\n \"#snippet.banDurationSeconds\": unsigned long,\n \"#snippet.bannedUserDetails\": {\n \"#snippet.bannedUserDetails.channelId\": string\n }\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#liveChatBan`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube assigns to uniquely identify the ban. |\n| `snippet` | `object` The `snippet` object identifies the banned user and contains details about the ban. |\n| snippet.`liveChatId` | `string` The live chat to which the ban applies. The live chat ID associated with a broadcast is returned in the `liveBroadcast` resource's `snippet.liveChatId` property. |\n| snippet.`type` | `string` The type of ban. Valid values for this property are: - `permanent` - `temporary` |\n| snippet.`banDurationSeconds` | `unsigned long` The duration of the ban. Only set a value for this property if the ban's type is `temporary`. The default value is `300` (5 minutes). |\n| snippet.`bannedUserDetails` | `object` This object contains information that identifies the banned user. |\n| snippet.bannedUserDetails.`channelId` | `string` The banned user's YouTube channel ID. |"]]