קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Calendar API מציע כמה מושגים שמועילים בעיקר ללקוחות Google Workspace. ללקוחות האלה יש לרוב משאבים – חדרים, מקרנים וכו' – שהם רוצים להזמין לאירועים ספציפיים. בנוסף, נפוץ ליצור אפליקציות פנימיות שזקוקות לגישה לכל היומנים של המשתמשים בדומיין, למשל כדי להוסיף להם אירועים של החברה.
משאבים וחדרים בדומיין
אתם יכולים להזמין משאבים וחדרים על ידי הוספה שלהם לאירועים כמשתתפים, באמצעות כתובת האימייל שלהם. כשהם מקבלים את ההזמנה, הם מאשרים או דוחים את האירוע באופן אוטומטי על סמך הזמינות והרשאת הגישה של המשתמש ששלח את ההזמנה.
גישה ליומנים של הדומיין כאפליקציה
אפליקציה יכולה לגשת ליומנים שבבעלות הדומיין בלי לדרוש פרטי כניסה של משתמשים, אם היא עוברת אימות באמצעות חשבון שירות. לחשבון השירות צריכה להיות גישה באמצעות הענקת הרשאות ברמת הדומיין. כדי להתחזות לחשבון משתמש, צריך לציין את כתובת האימייל של חשבון המשתמש באמצעות השיטה setServiceAccountUser של המפעל GoogleCredential.
[null,null,["עדכון אחרון: 2025-08-29 (שעון UTC)."],[],[],null,["# Domain resources, rooms & calendars\n\nCalendar API offers several concepts that are primarily useful for\n[Google Workspace](https://workspace.google.com/)\ncustomers. These customers often have\nresources---rooms, projectors, and so forth---that they may wish to\nbook for specific events. Furthermore, it's common to build internal apps that\nneed access to all user calendars in a domain, for example to add corporate\nevents to them.\n\nDomain resources \\& rooms\n-------------------------\n\nYou can book resources and rooms by adding them to events as attendees, using\ntheir email address. When they receive the invitation, they automatically\naccept or decline the event based on the availability and access right of the\ninviting user.\n| **Note:** The Calendar API does not offer a way to create resource calendars. To do this, you need to use the Directory API's [Calendar Resource](/workspace/admin/directory/reference/rest/v1/resources.calendars) object. The calendarId corresponds to the resourceEmail field of the Calendar Resource representation.\n\nAccessing domain calendars as an app\n------------------------------------\n\nAn app can access domain-owned calendars without requiring\nuser credentials if it authenticates using a [service\naccount](/identity/protocols/OAuth2ServiceAccount). The service account must\nhave the necessary access using [domain-wide authority\ndelegation](/identity/protocols/OAuth2ServiceAccount#delegatingauthority). In\norder to impersonate a user account, specify the email address of the user\naccount with the `setServiceAccountUser` method of the `GoogleCredential`\nfactory."]]