Method: users.settings.sendAs.get
מקבל את כינוי השליחה שצוין. כשל עם שגיאת HTTP 404 אם הכתובת שצוינה אינה כלולה באוסף.
בקשת HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד 'me' כדי לציין את המשתמש המאומת.
|
sendAsEmail |
string
הכינוי 'שלח בתור' שיש לאחזר.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של 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)."],[[["Retrieves a specific send-as alias for a Gmail user using their email address."],["The request requires specifying the user's email address and the send-as alias email in the URL."],["An empty request body is necessary, and a successful response returns the details of the send-as alias."],["Authorization is required with one of the specified OAuth scopes, including access to Gmail settings or general Gmail access."]]],["This outlines retrieving a \"send-as\" alias via a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}`. The `userId` and `sendAsEmail` are path parameters, where \"me\" can replace the user's email. The request body must be empty. Successful requests return a `SendAs` instance, otherwise, a 404 error will occur if the alias is not found. One of the four listed OAuth scopes is required for authorization.\n"]]