LiveChatBans
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
liveChatBan
रिसॉर्स, YouTube के किसी उपयोगकर्ता और उस लाइव चैट की पहचान करता है जिसमें उपयोगकर्ता को हिस्सा लेने से प्रतिबंधित किया गया है.
तरीके
एपीआई, liveChatBans
संसाधनों के लिए इन तरीकों का इस्तेमाल करता है:
- शामिल करें
- किसी उपयोगकर्ता को लाइव चैट में हिस्सा लेने से रोकता है. एपीआई अनुरोध के लिए, चैनल के मालिक या पाबंदी वाली लाइव चैट के मॉडरेटर की अनुमति लेना ज़रूरी है.
इसे अभी आज़माएं.
- मिटाएं
- किसी उपयोगकर्ता पर लगाया गया ऐसा प्रतिबंध हटाता है जिसकी वजह से वह लाइव चैट में हिस्सा नहीं ले पा रहा है. इससे, उपयोगकर्ता चैट में फिर से शामिल हो सकता है. एपीआई अनुरोध के लिए, चैनल के मालिक या पाबंदी वाली लाइव चैट के मॉडरेटर की अनुमति लेना ज़रूरी है.
इसे अभी आज़माएं.
प्रॉपर्टी
इस टेबल में, इस संसाधन में दिखने वाली प्रॉपर्टी के बारे में बताया गया है:
प्रॉपर्टी |
kind |
string
एपीआई संसाधन के टाइप की पहचान करता है. वैल्यू youtube#liveChatBan होगी. |
etag |
etag
इस संसाधन का Etag. |
id |
string
YouTube, पाबंदी की खास तौर पर पहचान करने के लिए यह आईडी असाइन करता है. |
snippet |
object
snippet ऑब्जेक्ट, पाबंदी वाले उपयोगकर्ता की पहचान करता है. साथ ही, इसमें पाबंदी के बारे में जानकारी होती है. |
snippet.liveChatId |
string
वह लाइव चैट जिस पर पाबंदी लगी है. किसी ब्रॉडकास्ट से जुड़ा लाइव चैट आईडी, liveBroadcast रिसॉर्स की snippet.liveChatId प्रॉपर्टी में दिखता है. |
snippet.type |
string
पाबंदी का टाइप.
इस प्रॉपर्टी के लिए मान्य वैल्यू ये हैं:
|
snippet.banDurationSeconds |
unsigned long
पाबंदी की अवधि. इस प्रॉपर्टी के लिए सिर्फ़ तब वैल्यू सेट करें, जब पाबंदी का टाइप temporary हो. डिफ़ॉल्ट वैल्यू 300 (पांच मिनट) है. |
snippet.bannedUserDetails |
object
इस ऑब्जेक्ट में, पाबंदी वाले उपयोगकर्ता की पहचान करने वाली जानकारी होती है. |
snippet.bannedUserDetails.channelId |
string
जिस उपयोगकर्ता पर पाबंदी लगाई गई है उसका YouTube चैनल आईडी. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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,[]]