Method: users.threads.untrash
رشته مشخص شده را از سطل زباله حذف می کند. هر پیامی که متعلق به رشته است نیز از سطل زباله حذف می شود.
درخواست HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/untrash
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
userId | string آدرس ایمیل کاربر. مقدار ویژه me می تواند برای نشان دادن کاربر تأیید شده استفاده شود. |
id | string شناسه رشته برای حذف از سطل زباله. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Thread
است.
محدوده مجوز
به یکی از حوزه های 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-09-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-09-05 بهوقت ساعت هماهنگ جهانی."],[[["Removes a specified thread and its associated messages from the trash."],["Requires the user's email address (`userId`) and the thread ID (`id`) as path parameters."],["Uses an empty request body and returns a `Thread` object upon successful completion."],["Needs authorization with specific OAuth scopes like `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.modify`."]]],["This document outlines the process of removing a thread from the trash in Gmail. The core action is an HTTP POST request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/untrash`. Key information includes: `userId` and `id` as path parameters, where `me` represents the authenticated user and `id` is the thread ID. The request body must be empty. A successful operation returns a `Thread` object in the response body. It requires specific OAuth scopes for authorization, such as `https://mail.google.com/`.\n"]]