সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই নির্দেশিকাটি ব্যাখ্যা করে যে কীভাবে Google Chat API-এর Reaction সংস্থানে list() পদ্ধতি ব্যবহার করে একটি বার্তার প্রতিক্রিয়াগুলি তালিকাভুক্ত করতে হয়—যেমন 👍, 🚲, এবং 🌞৷
Reaction রিসোর্স এমন একটি ইমোজিকে প্রতিনিধিত্ব করে যা লোকেরা 👍, 🚲, এবং 🌞 এর মতো মেসেজে প্রতিক্রিয়া জানাতে ব্যবহার করতে পারে।
একটি ডেস্কটপ অ্যাপ্লিকেশনের জন্য OAuth ক্লায়েন্ট আইডি শংসাপত্র তৈরি করুন । এই গাইডে নমুনা চালানোর জন্য, আপনার স্থানীয় ডিরেক্টরিতে credentials.json নামে একটি JSON ফাইল হিসাবে শংসাপত্রগুলি সংরক্ষণ করুন৷
নির্দেশনার জন্য, এই কুইকস্টার্টে আপনার পরিবেশ সেট আপ করার পদক্ষেপগুলি সম্পূর্ণ করুন৷
import{createClientWithUserCredentials}from'./authentication-utils.js';constUSER_AUTH_OAUTH_SCOPES=['https://www.googleapis.com/auth/chat.messages.reactions.readonly'];// This sample shows how to list reactions to a message with user credentialasyncfunctionmain(){// Create a clientconstchatClient=awaitcreateClientWithUserCredentials(USER_AUTH_OAUTH_SCOPES);// Initialize request argument(s)constrequest={// Replace SPACE_NAME and MESSAGE_NAME here.parent:'spaces/SPACE_NAME/messages/MESSAGE_NAME'};// Make the requestconstpageResult=chatClient.listReactionsAsync(request);// Handle the response. Iterating over pageResult will yield results and// resolve additional pages automatically.forawait(constresponseofpageResult){console.log(response);}}main().catch(console.error);
এই নমুনা চালানোর জন্য, নিম্নলিখিত প্রতিস্থাপন করুন:
SPACE_NAME : স্পেসের name থেকে আইডি। আপনি ListSpaces() পদ্ধতিতে কল করে বা স্পেস এর URL থেকে আইডি পেতে পারেন।
MESSAGE_NAME : বার্তাটির name থেকে আইডি। চ্যাট এপিআই-এর সাথে অ্যাসিঙ্ক্রোনাসভাবে একটি বার্তা তৈরি করার পরে বা তৈরির সময় বার্তাটির জন্য নির্ধারিত কাস্টম নামের সাথে আপনি ফিরে আসা প্রতিক্রিয়া বডি থেকে আইডি পেতে পারেন।
[[["সহজে বোঝা যায়","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-05-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This guide explains how to use the `list()` method to retrieve reactions (e.g., 👍, 🚲, 🌞) for messages in Google Chat using the Google Chat API."],["Before you begin, ensure you have a Google Workspace account, set up a Google Cloud project, enable the Google Chat API, and install the Node.js Cloud Client Library."],["To list reactions, call the `ListReactions()` method, providing the message's resource name and specifying the necessary authorization scope."],["You'll need the space ID and message ID to construct the resource name for the `ListReactions()` method call."],["The Chat API returns a paginated list of reactions for the specified message."]]],["This guide details listing reactions (emojis like 👍, 🚲, 🌞) on Google Chat messages using the Chat API's `ListReactions()` method. Key actions include setting up a Google Cloud project, enabling the Chat API, and obtaining OAuth credentials. To list reactions, specify the appropriate authorization scope (`chat.messages.reactions.readonly`, etc.) and call `ListReactions()`, passing the message's resource name as the `parent`. The API returns a paginated list of reactions.\n"]]