با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Calendar API چندین مفهوم را ارائه می دهد که در درجه اول برای مشتریان Google Workspace مفید هستند. این مشتریان اغلب منابعی دارند - اتاقها، پروژکتورها و غیره - که ممکن است بخواهند برای رویدادهای خاص رزرو کنند. علاوه بر این، ساختن برنامههای داخلی که نیاز به دسترسی به همه تقویمهای کاربر در یک دامنه دارند، برای مثال برای افزودن رویدادهای شرکتی به آنها، معمول است.
منابع و اتاق های دامنه
میتوانید منابع و اتاقها را با افزودن آنها به رویدادها به عنوان شرکتکنندگان و با استفاده از آدرس ایمیل آنها رزرو کنید. هنگامی که آنها دعوت نامه را دریافت می کنند، به طور خودکار رویداد را بر اساس در دسترس بودن و حق دسترسی کاربر دعوت کننده می پذیرند یا رد می کنند.
دسترسی به تقویم های دامنه به عنوان یک برنامه
اگر برنامه با استفاده از حساب سرویس احراز هویت شود، میتواند بدون نیاز به اعتبار کاربری به تقویمهای متعلق به دامنه دسترسی داشته باشد. حساب سرویس باید با استفاده از تفویض اختیار در سطح دامنه، دسترسی لازم را داشته باشد. برای جعل هویت یک حساب کاربری، آدرس ایمیل حساب کاربری را با روش setServiceAccountUser کارخانه GoogleCredential مشخص کنید.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]