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/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)."],[[["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"]]