Method: subscriptions.create

একটি গুগল ওয়ার্কস্পেস সাবস্ক্রিপশন তৈরি করে। এই পদ্ধতিটি কীভাবে ব্যবহার করতে হয় তা জানতে, “একটি গুগল ওয়ার্কস্পেস সাবস্ক্রিপশন তৈরি করুন” দেখুন।

একটি চ্যাট টার্গেট রিসোর্সে সাবস্ক্রিপশনের জন্য, আপনি নিম্নোক্তভাবে একটি সাবস্ক্রিপশন তৈরি করতে পারেন:

HTTP অনুরোধ

POST https://workspaceevents.googleapis.com/v1/subscriptions

URL-টিতে gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করা হয়েছে।

কোয়েরি প্যারামিটার

প্যারামিটার
validateOnly

boolean

ঐচ্ছিক। true সেট করা হলে, এটি অনুরোধটি যাচাই করে এবং প্রিভিউ দেখায়, কিন্তু সাবস্ক্রিপশন তৈরি করে না।

অনুরোধকারী শরীর

অনুরোধের বডিতে Subscription -এর একটি ইনস্ট্যান্স থাকে।

প্রতিক্রিয়া সংস্থা

সফল হলে, রেসপন্স বডিতে Operation এর একটি নতুন তৈরি হওয়া ইনস্ট্যান্স থাকে।

  • metadata ফিল্ডটিতে একটি খালি অ্যারে রয়েছে।
  • response ফিল্ডটিতে Subscription এর একটি নতুন ইনস্ট্যান্স রয়েছে।

অনুমোদনের পরিধি

নিম্নলিখিত 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.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.memberships
  • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.all.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.messages.readonly
  • https://www.googleapis.com/auth/chat.app.all.messages.readonly
  • https://www.googleapis.com/auth/chat.app.spaces
  • https://www.googleapis.com/auth/chat.app.spaces.readonly
  • https://www.googleapis.com/auth/chat.app.all.spaces.readonly
  • https://www.googleapis.com/auth/chat.app.all.users.readstate.readonly
  • https://www.googleapis.com/auth/meetings.space.created
  • https://www.googleapis.com/auth/meetings.space.readonly
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।