הפונקציה מחזירה פרטים על מרחב משותף. דוגמה לכך מופיעה במאמר הצגת פרטים על מרחבים משותפים.
יש תמיכה בסוגי אימות הבאים:
אימות אפליקציה באמצעות אחד מההיקפים הבאים של הרשאות:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.app.spaces
עם אישור אדמין
אימות משתמשים עם אחד מההיקפים הבאים של הרשאות:
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.spaces
- אימות משתמש מעניק הרשאות אדמין כשחשבון אדמין מבצע אימות, הערך של
useAdminAccess
הואtrue
ומשתמשים באחד מהיקפי ההרשאה הבאים:https://www.googleapis.com/auth/chat.admin.spaces.readonly
https://www.googleapis.com/auth/chat.admin.spaces
בקשת HTTP
GET https://chat.googleapis.com/v1/{name=spaces/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים | |
---|---|
name |
חובה. שם המשאב של המרחב המשותף, בפורמט פורמט: |
פרמטרים של שאילתה
פרמטרים | |
---|---|
useAdminAccess |
אופציונלי. כשהערך של המשתמש הקורא חייב להיות אדמין ב-Google Workspace עם הרשאה לניהול צ'אטים ושיחות במרחבים משותפים. נדרשים היקפי ההרשאות של OAuth 2.0 |
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של Space
.
היקפי הרשאה
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/chat.admin.spaces
https://www.googleapis.com/auth/chat.admin.spaces.readonly
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.app.spaces
מידע נוסף זמין במדריך ההרשאות.