LiveChatMessages: transition
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি YouTube লাইভ চ্যাট বার্তার স্থিতি স্থানান্তর করে এবং নতুন স্থিতির সাথে সম্পর্কিত যে কোনও প্রক্রিয়া শুরু করে৷ উদাহরণস্বরূপ, আপনি যখন একটি লাইভ পোলের স্থিতিকে closed
রূপান্তরিত করেন, তখন YouTube সেই বার্তাটির পোল শেষ করে। এই পদ্ধতিতে কল করার আগে, আপনাকে নিশ্চিত করতে হবে যে লাইভ পোল বার্তার জন্য status
প্রপার্টির মান active
।
অনুরোধ
HTTP অনুরোধ
POST https://www.googleapis.com/youtube/v3/liveChatMessages/transition
অনুমোদন
এই অনুরোধের জন্য নিম্নলিখিত স্কোপের মধ্যে অন্তত একটির অনুমোদন প্রয়োজন ( প্রমাণিকরণ এবং অনুমোদন সম্পর্কে আরও পড়ুন )।
ব্যাপ্তি |
---|
https://www.googleapis.com/auth/youtube |
https://www.googleapis.com/auth/youtube.force-ssl |
পরামিতি
নিম্নলিখিত সারণীতে এই ক্যোয়ারী সমর্থন করে এমন প্যারামিটারগুলি তালিকাভুক্ত করা হয়েছে৷ তালিকাভুক্ত সমস্ত প্যারামিটার হল ক্যোয়ারী প্যারামিটার।
পরামিতি |
---|
প্রয়োজনীয় পরামিতি |
id | string id প্যারামিটারটি বার্তাটির অনন্য আইডি নির্দিষ্ট করে যা অন্য স্ট্যাটাসে রূপান্তরিত হচ্ছে। |
status | enum status প্যারামিটারটি সেই অবস্থাকে চিহ্নিত করে যেখানে বার্তাটি পরিবর্তন হচ্ছে। একটি বার্তাকে closed অবস্থায় স্থানান্তর করতে, বার্তাটি যে পোলের সাথে আবদ্ধ তার জন্য status active হতে হবে।
আপনি শুধুমাত্র closed স্থানান্তর করতে পারেন, যার অর্থ পোল বন্ধ। |
ঐচ্ছিক পরামিতি |
part | string part প্যারামিটারটি liveChatMessage সংস্থান অংশগুলিকে নির্দিষ্ট করে যা API প্রতিক্রিয়া অন্তর্ভুক্ত করবে। সমর্থিত মান হল id , snippet এবং authorDetails ।
প্রতিক্রিয়া বডিতে চূড়ান্ত ভোটের ফলাফল পেতে snippet প্যারামিটার মান সেট করুন। |
শরীরের অনুরোধ
এই পদ্ধতিতে কল করার সময় একটি অনুরোধের অংশ প্রদান করবেন না।
ত্রুটি
নিম্নলিখিত সারণী ত্রুটি বার্তাগুলি সনাক্ত করে যা API এই পদ্ধতিতে একটি কলের প্রতিক্রিয়া হিসাবে ফিরে আসতে পারে৷ আরো বিস্তারিত জানার জন্য ত্রুটি বার্তা ডকুমেন্টেশন দেখুন.
ত্রুটির ধরন | ত্রুটি বিস্তারিত | বর্ণনা |
---|
forbidden (403) | forbidden | নির্দিষ্ট বার্তার স্থিতি স্থানান্তর করার জন্য আপনার কাছে প্রয়োজনীয় অনুমতি নেই৷ |
required (400) | idRequired | প্রয়োজনীয় id প্যারামিটারটি অবশ্যই সেই বার্তাটিকে সনাক্ত করতে হবে যার স্থিতি আপনি স্থানান্তর করতে চান৷ |
required (400) | statusRequired | API অনুরোধে status প্যারামিটারের জন্য একটি মান উল্লেখ করতে হবে। |
notFound (404) | liveChatMessagesNotFound | id প্যারামিটার দ্বারা নির্দিষ্ট করা বার্তাটি বিদ্যমান নেই। |
forbidden (403) | modificationNotAllowed | নির্দিষ্ট liveChatMessage সম্পদের স্থিতি স্থানান্তর করা যাবে না। id প্যারামিটার এমন একটি বার্তা সনাক্ত করতে পারে যার স্থিতি স্থানান্তর করা যাবে না। |
এটা চেষ্টা করুন!
এই API কল করতে APIs Explorer ব্যবহার করুন এবং API অনুরোধ এবং প্রতিক্রিয়া দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-08-08 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"]],["2024-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis API endpoint transitions the status of a YouTube live chat message, such as closing an active poll.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires authorization and must include the message's unique \u003ccode\u003eid\u003c/code\u003e and the new \u003ccode\u003estatus\u003c/code\u003e (\u003ccode\u003eclosed\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epart\u003c/code\u003e parameter, which is optional, specifies which parts of the \u003ccode\u003eliveChatMessage\u003c/code\u003e resource to include in the API response (e.g. \u003ccode\u003esnippet\u003c/code\u003e, \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003eauthorDetails\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eSuccessful calls to this API will return a \u003ccode\u003eliveChatMessages\u003c/code\u003e resource in the response body, detailing the message's new status.\u003c/p\u003e\n"],["\u003cp\u003eCommon errors include \u003ccode\u003eforbidden\u003c/code\u003e for permission issues, \u003ccode\u003erequired\u003c/code\u003e for missing parameters, \u003ccode\u003enotFound\u003c/code\u003e if the message ID doesn't exist, and \u003ccode\u003emodificationNotAllowed\u003c/code\u003e if the specified message's status can't be changed.\u003c/p\u003e\n"]]],["This API endpoint, `liveChatMessages/transition`, changes a YouTube live chat message's status and triggers related actions. It requires the message's `id` and the target `status`, which can only be `closed`. The `status` of the poll must be `active` to proceed with the transition. The request is a `POST` method without a request body. Authorization scopes `youtube` or `youtube.force-ssl` are needed. Upon success, a `liveChatMessages` resource is returned, and errors include `forbidden`, `required`, and `notFound`.\n"],null,[]]