Method: users.settings.forwardingAddresses.list
בתיבת הדו-שיח הזו מפורטים הכתובות להעברה של החשבון שצוין.
בקשת HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
כתובת האימייל של המשתמש. הערך המיוחד 'me' יכול לשמש לציון המשתמש המאומת.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
תשובה לשיטה deliveryAddresses.list.
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
שדות |
forwardingAddresses[] |
object (ForwardingAddress )
רשימת כתובות שאפשר להשתמש בהן להעברה.
|
היקפי ההרשאות
נדרש אחד מהיקפי ההרשאות הבאים של 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 lists email forwarding addresses for a specified Gmail account."],["It uses an HTTP GET request with the user's email address as a path parameter."],["The response includes a list of forwarding addresses in JSON format."],["Authorization is required using one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/gmail.settings.basic` or `https://www.googleapis.com/auth/gmail.readonly`."]]],["This document outlines how to list forwarding addresses for a Gmail account. A `GET` request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses`, using the user's email or \"me\" as the `userId` path parameter. The request body must be empty. A successful response returns a JSON object containing an array of forwarding addresses. Authorization requires specific OAuth scopes like `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, or `gmail.readonly`.\n"]]