Method: users.settings.getImap
בקשת HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד 'me' כדי לציין את המשתמש המאומת.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של ImapSettings
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של 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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Retrieves a user's IMAP settings through an HTTP GET request to a specified URL."],["Requires specifying the user's email address (or \"me\" for the authenticated user) as a path parameter."],["An empty request body is necessary, and a successful response returns an ImapSettings object."],["Authorization is required, utilizing one of the provided OAuth scopes for access control."]]],["The core content describes how to retrieve IMAP settings using a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap`. The `userId` path parameter, either an email or \"me\", specifies the user. The request body must be empty. A successful response will return `ImapSettings`. Access requires one of four OAuth scopes, including `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, or `gmail.readonly`. The URL utilizes gRPC Transcoding syntax.\n"]]