Method: spaces.get

הפונקציה מחזירה פרטים על מרחב משותף. דוגמה לכך מופיעה במאמר הצגת פרטים על מרחבים משותפים.

יש תמיכה בסוגי אימות הבאים:

  • אימות אפליקציה באמצעות אחד מההיקפים הבאים של הרשאות:

    • 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

string

חובה. שם המשאב של המרחב המשותף, בפורמט spaces/{space}.

פורמט: spaces/{space}

פרמטרים של שאילתה

פרמטרים
useAdminAccess

boolean

אופציונלי. כשהערך של true הוא true, השיטה פועלת באמצעות הרשאות האדמין של המשתמש ב-Google Workspace.

המשתמש הקורא חייב להיות אדמין ב-Google Workspace עם הרשאה לניהול צ'אטים ושיחות במרחבים משותפים.

נדרשים היקפי ההרשאות של OAuth 2.0 chat.admin.spaces או chat.admin.spaces.readonly.

גוף הבקשה

גוף הבקשה חייב להיות ריק.

גוף התשובה

אם הפעולה מצליחה, גוף התגובה מכיל מופע של 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

מידע נוסף זמין במדריך ההרשאות.