Method: subscriptions.create
एचटीटीपी अनुरोध
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
यूआरएल, 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/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-05-03 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-05-03 (UTC) को अपडेट किया गया."],[[["Creates a Google Workspace subscription using an HTTP POST request to a specified URL."],["Allows validation and preview of the request without creating a subscription using the `validateOnly` query parameter."],["Requires providing a Subscription object in the request body and returns an Operation object in the response, containing the new subscription details."],["Requires specific authorization scopes, such as chat and meeting related scopes, for access control and permissions."],["Is currently available as part of the Google Workspace Developer Preview Program."]]],["This document details creating a Google Workspace subscription via a `POST` request to `https://workspaceevents.googleapis.com/v1beta/subscriptions`. The request includes optional `validateOnly` query parameter for previewing. The request body requires a `Subscription` instance, and successful responses return an `Operation` instance, which contains an array and a new `Subscription` instance. Creating subscription needs to use one of the authorization scopes. This feature is in developer preview.\n"]]