Method: subscriptions.create
בקשת HTTP
POST https://workspaceevents.googleapis.com/v1beta/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/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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"]]