UsersThreads
class UsersThreads extends Resource (View source)
The "threads" collection of methods.
Typical usage is:
$gmailService = new Google\Service\Gmail(...);
$threads = $gmailService->users_threads;
Methods
Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone.
Gets the specified thread. (threads.get)
Lists the threads in the user's mailbox. (threads.listUsersThreads)
Modifies the labels applied to the thread. This applies to all messages in the thread. (threads.modify)
Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash. (threads.trash)
Details
delete(string $userId, string $id, array $optParams = [])
Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone.
Prefer threads.trash
instead. (threads.delete)
Thread
get(string $userId, string $id, array $optParams = [])
Gets the specified thread. (threads.get)
ListThreadsResponse
listUsersThreads(string $userId, array $optParams = [])
Lists the threads in the user's mailbox. (threads.listUsersThreads)
Thread
modify(string $userId, string $id, ModifyThreadRequest $postBody, array $optParams = [])
Modifies the labels applied to the thread. This applies to all messages in the thread. (threads.modify)
Thread
trash(string $userId, string $id, array $optParams = [])
Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash. (threads.trash)
Thread
untrash(string $userId, string $id, array $optParams = [])
Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash. (threads.untrash)