REST Resource: users.threads
Ресурс: Тема
Коллекция сообщений, представляющих беседу.
JSON-представление |
---|
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
Поля |
---|
id | string Уникальный идентификатор потока. |
snippet | string Краткая часть текста сообщения. |
historyId | string Идентификатор последней записи истории, которая изменила этот поток. |
messages[] | object ( Message ) Список сообщений в теме. |
Методы |
---|
| Немедленно и навсегда удаляет указанную тему. |
| Получает указанный поток. |
| Перечисляет потоки в почтовом ящике пользователя. |
| Изменяет метки, примененные к потоку. |
| Перемещает указанную тему в корзину. |
| Удаляет указанную тему из корзины. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-14 UTC.
[null,null,["Последнее обновление: 2024-11-14 UTC."],[[["A Thread is a collection of messages forming a conversation, identified by a unique ID and containing a snippet of the message text."],["Threads contain metadata such as `snippet`, `historyId`, and a list of messages."],["You can manage Threads using methods like `delete`, `get`, `list`, `modify`, `trash`, and `untrash` to perform actions such as retrieving, modifying, or deleting them."]]],["Threads represent message collections in a conversation. Key details include a unique `id`, a `snippet` of text, the `historyId` of modifications, and an array of `messages`. Threads can be managed via methods to get thread information, list all threads, modify labels, and delete, trash, or untrash them. The thread's JSON representation shows the structure of the information, with string fields for identification and metadata and an array of messages.\n"]]