Method: users.settings.delegates.get
तय किया गया प्रतिनिधि पाता है.
ध्यान दें कि जिस उपयोगकर्ता को आपके ईमेल खाते का ऐक्सेस दिया गया है उसे उनके मुख्य ईमेल पते से भेजा जाना चाहिए, न कि ईमेल उपनाम से.
यह तरीका, सेवा खाते के सिर्फ़ उन क्लाइंट के लिए उपलब्ध है जिन्हें पूरे डोमेन पर अधिकार दिया गया है.
एचटीटीपी अनुरोध
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
userId |
string
उपयोगकर्ता का ईमेल पता. खास वैल्यू "मैं" का इस्तेमाल, पुष्टि किए गए उपयोगकर्ता को दिखाने के लिए किया जा सकता है.
|
delegateEmail |
string
उस उपयोगकर्ता का ईमेल पता जिसका प्रतिनिधि होना है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में Delegate
का एक इंस्टेंस शामिल किया जाता है.
अनुमति देने के दायरे
इनमें से कोई एक OAuth स्कोप ज़रूरी है:
https://www.googleapis.com/auth/gmail.settings.basic
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया."],[[["Retrieves a specific delegate for a Gmail user, identified by their primary email address."],["This functionality is exclusive to service accounts with domain-wide authority."],["Requires providing the user's email address (or \"me\" for the authenticated user) and the delegate's email address as path parameters."],["The response provides details of the delegate relationship if successful."],["Several OAuth scopes, including `https://www.googleapis.com/auth/gmail.settings.basic` and `https://www.googleapis.com/auth/gmail.modify`, are necessary for authorization."]]],["This describes retrieving a delegate user's information via a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}`. The `userId` parameter specifies the user, and `delegateEmail` the delegate. The request body must be empty. A successful response contains a `Delegate` instance. This operation requires domain-wide authority for service accounts and one of the listed OAuth scopes for authorization. Delegate user must be referred by their primary email.\n"]]