Method: users.spaces.spaceNotificationSetting.get
הפונקציה מקבלת את הגדרות המצב של התראות במרחב המשותף.נדרש אימות משתמש.
בקשת HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceNotificationSetting}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. פורמט: users/{user}/spaces/{space}/spaceNotificationSetting
users/me/spaces/{space}/spaceNotificationSetting , או
users/user@example.com/spaces/{space}/spaceNotificationSetting , או
users/123456789/spaces/{space}/spaceNotificationSetting . הערה: אפשר להשתמש רק במזהה המשתמש או בכתובת האימייל של המתקשר בנתיב.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של SpaceNotificationSetting
.
היקפי ההרשאות
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/chat.users.spacesettings
מידע נוסף זמין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-10 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-10 (שעון UTC)."],[[["Retrieves the notification settings for a specific Google Chat space for the authenticated user."],["Requires providing the user and space identifiers in the request URL."],["Returns a `SpaceNotificationSetting` object containing the space's notification configuration details upon successful execution."],["Needs authorization with the `https://www.googleapis.com/auth/chat.users.spacesettings` scope for access."],["Available as part of the Google Workspace Developer Preview Program."]]],["This document details how to retrieve space notification settings via an HTTP GET request. The request URL, `https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceNotificationSetting}`, uses gRPC Transcoding, requiring a `name` path parameter specifying the user and space. The request body must be empty. A successful request returns a `SpaceNotificationSetting` instance, and requires user authentication and the `https://www.googleapis.com/auth/chat.users.spacesettings` OAuth scope. This feature is part of the Google Workspace Developer Preview Program.\n"]]