Method: users.messages.untrash
پیام مشخص شده را از سطل زباله حذف می کند.
درخواست HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/untrash
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
userId | string آدرس ایمیل کاربر. مقدار ویژه me می تواند برای نشان دادن کاربر تأیید شده استفاده شود. |
id | string شناسه پیامی که باید از سطل زباله حذف شود. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Message
است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://mail.google.com/
-
https://www.googleapis.com/auth/gmail.modify
برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["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"]]