Method: subscriptions.create
एचटीटीपी अनुरोध
POST https://workspaceevents.googleapis.com/v1/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) को अपडेट किया गया."],[[["This method creates a Google Workspace subscription and provides instructions on how to use it through a provided link."],["The request can be previewed without creating a subscription by setting the `validateOnly` query parameter to `true`."],["A successful response includes an `Operation` object containing the newly created `Subscription` details."],["Authorization requires one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/chat.spaces` or others related to chat, messages, memberships, and meetings, with more information available in the Authorization guide."]]],["This describes how to create a Google Workspace subscription via a `POST` request to `https://workspaceevents.googleapis.com/v1/subscriptions`. The request includes an instance of `Subscription` in the body. The `validateOnly` query parameter can be used to preview the request. Successful responses contain an `Operation` instance, where `response` field has a new `Subscription`. This process requires one of several listed OAuth scopes for authorization.\n"]]