Method: users.messages.untrash
הסרת ההודעה שצוינה מהאשפה.
בקשת HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/untrash
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד me כדי לציין את המשתמש המאומת.
|
id |
string
המזהה של ההודעה שיש להסיר מהאשפה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Message
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של OAuth:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Removes a specified message from the trash using the user's email address and the message ID."],["Uses an HTTP POST request with path parameters for user ID and message ID and an empty request body."],["Requires authorization with specific OAuth scopes for Gmail access and modification."],["A successful response returns the message details as a JSON object representing the message."]]],["This describes how to remove a message from the trash in Gmail. A `POST` request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/untrash`. The `userId` (or `me`) and `id` of the message are specified in the URL's path. The request body must be empty. A successful operation returns a `Message` instance in the response. This action requires either `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.modify` authorization scopes.\n"]]