একটি Google চ্যাট স্থান থেকে একটি ইভেন্ট ফেরত দেয়। ইভেন্ট পেলোডে পরিবর্তিত সম্পদের সাম্প্রতিকতম সংস্করণ রয়েছে। উদাহরণস্বরূপ, যদি আপনি একটি নতুন বার্তা সম্পর্কে একটি ইভেন্টের অনুরোধ করেন কিন্তু বার্তাটি পরে আপডেট করা হয়, সার্ভারটি ইভেন্ট পেলোডে আপডেট করা Message
সংস্থান ফেরত দেয়।
দ্রষ্টব্য: এই অনুরোধের জন্য স্পেস ইভেন্ট ডেটার স্পেস অবজেক্টে permissionSettings
ক্ষেত্রটি ফেরত দেওয়া হয় না।
অনুরোধ করা ডেটা পড়ার জন্য উপযুক্ত অনুমোদনের সুযোগ সহ ব্যবহারকারীর প্রমাণীকরণের প্রয়োজন:
-
https://www.googleapis.com/auth/chat.spaces.readonly
-
https://www.googleapis.com/auth/chat.spaces
-
https://www.googleapis.com/auth/chat.messages.readonly
-
https://www.googleapis.com/auth/chat.messages
-
https://www.googleapis.com/auth/chat.messages.reactions.readonly
-
https://www.googleapis.com/auth/chat.messages.reactions
-
https://www.googleapis.com/auth/chat.memberships.readonly
-
https://www.googleapis.com/auth/chat.memberships
একটি ইভেন্ট পেতে, প্রমাণীকৃত ব্যবহারকারীকে অবশ্যই স্থানের সদস্য হতে হবে।
একটি উদাহরণের জন্য, একটি Google চ্যাট স্পেস থেকে একটি ইভেন্ট সম্পর্কে বিশদ বিবরণ পান দেখুন।
HTTP অনুরোধ
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি | |
---|---|
name | প্রয়োজন। স্পেস ইভেন্টের সম্পদের নাম। বিন্যাস: |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে SpaceEvent
এর একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/chat.spaces
-
https://www.googleapis.com/auth/chat.spaces.readonly
-
https://www.googleapis.com/auth/chat.messages
-
https://www.googleapis.com/auth/chat.messages.readonly
-
https://www.googleapis.com/auth/chat.memberships
-
https://www.googleapis.com/auth/chat.memberships.readonly
-
https://www.googleapis.com/auth/chat.messages.reactions
-
https://www.googleapis.com/auth/chat.messages.reactions.readonly
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।