Method: users.settings.sendAs.list
רשימה של כינויי השליחה של החשבון שצוין. התוצאה כוללת את הכתובת הראשית למשלוח כתובת שמשויכת לחשבון, וכן כל שדה 'מאת' מותאם אישית כינויים.
בקשת HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
כתובת האימייל של המשתמש. הערך המיוחד 'me' יכול לשמש לציון המשתמש המאומת.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
תשובה לשיטת sendAs.list.
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
ייצוג JSON |
{
"sendAs": [
{
object (SendAs )
}
]
} |
שדות |
sendAs[] |
object (SendAs )
רשימת כינויי 'שליחה כ'.
|
היקפי ההרשאות
נדרש אחד מהיקפי ההרשאות הבאים של 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)."],[[["Lists send-as aliases, including the primary address and custom \"from\" aliases, for a specified Gmail account."],["Uses an HTTP GET request with the user's email address as a path parameter."],["Returns a JSON response containing an array of send-as aliases with details."],["Requires specific OAuth scopes for authorization, like `gmail.settings.basic` or `gmail.readonly`."]]],["This describes how to retrieve send-as aliases for a Gmail account. Using a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs`, specifying the user's email (or \"me\") in the `userId` path parameter. The request body must be empty. The successful response includes a JSON object with a `sendAs` array, detailing the account's primary send-as address and custom \"from\" aliases. This action requires specific OAuth scopes like `gmail.settings.basic` or `mail.google.com`.\n"]]