संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Calendar API में कई ऐसे कॉन्सेप्ट दिए गए हैं जो मुख्य रूप से Google Workspace के ग्राहकों के लिए फ़ायदेमंद हैं. इन ग्राहकों के पास अक्सर संसाधन होते हैं. जैसे, कमरे, प्रोजेक्टर वगैरह. ये ग्राहक, इन संसाधनों को किसी इवेंट के लिए बुक करना चाहते हैं. इसके अलावा, ऐसे इंटरनल ऐप्लिकेशन बनाना आम बात है जिन्हें किसी डोमेन में मौजूद सभी उपयोगकर्ताओं के कैलेंडर का ऐक्सेस चाहिए. उदाहरण के लिए, उनमें कंपनी के इवेंट जोड़ने के लिए.
डोमेन के संसाधन और कमरे
संसाधन और कमरे बुक करने के लिए, उन्हें इवेंट में शामिल होने वाले लोगों के तौर पर जोड़ें. इसके लिए, उनके ईमेल पते का इस्तेमाल करें. न्योता मिलने पर, वे इवेंट को अपने-आप स्वीकार या अस्वीकार कर देते हैं. ऐसा, न्योता भेजने वाले व्यक्ति की उपलब्धता और ऐक्सेस के अधिकार के आधार पर होता है.
ऐप्लिकेशन के तौर पर डोमेन कैलेंडर को ऐक्सेस करना
अगर कोई ऐप्लिकेशन सेवा खाते का इस्तेमाल करके पुष्टि करता है, तो वह उपयोगकर्ता के क्रेडेंशियल की ज़रूरत के बिना, डोमेन के मालिकाना हक वाले कैलेंडर ऐक्सेस कर सकता है. सेवा खाते के पास, डोमेन के अधिकार देने की सुविधा का इस्तेमाल करके ज़रूरी ऐक्सेस होना चाहिए. किसी उपयोगकर्ता खाते के तौर पर काम करने के लिए, GoogleCredential फ़ैक्ट्री के setServiceAccountUser तरीके का इस्तेमाल करके, उपयोगकर्ता खाते का ईमेल पता डालें.
[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."]]