Method: users.settings.getAutoForwarding
הפונקציה מקבלת את הגדרת ההעברה האוטומטית של החשבון שצוין.
בקשת HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/autoForwarding
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד 'me' כדי לציין את המשתמש המאומת.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של AutoForwarding
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של 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)."],[[["This API retrieves the auto-forwarding configuration for a specific Gmail account."],["It uses an HTTP GET request with the user's email address as a path parameter."],["An empty request body is required, and the response provides an AutoForwarding object containing the settings."],["Authorization is necessary using one of the specified OAuth scopes related to Gmail settings or access."]]],["This API retrieves the auto-forwarding settings for a specified Gmail account. It uses a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/autoForwarding`, where `userId` is the user's email or \"me\". The request body must be empty. A successful request returns an `AutoForwarding` instance in the response. Authorization requires one of four specified OAuth scopes: `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, or `gmail.readonly`.\n"]]