UsersLabels
class UsersLabels extends Resource (View source)
The "labels" collection of methods.
Typical usage is:
$gmailService = new Google\Service\Gmail(...);
$labels = $gmailService->users_labels;
Methods
delete(string $userId, string $id, array $optParams = [])
Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to. (labels.delete)
listUsersLabels(string $userId, array $optParams = [])
Lists all labels in the user's mailbox. (labels.listUsersLabels)
Details
Label
create(string $userId, Label $postBody, array $optParams = [])
Creates a new label. (labels.create)
delete(string $userId, string $id, array $optParams = [])
Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to. (labels.delete)
Label
get(string $userId, string $id, array $optParams = [])
Gets the specified label. (labels.get)
ListLabelsResponse
listUsersLabels(string $userId, array $optParams = [])
Lists all labels in the user's mailbox. (labels.listUsersLabels)
Label
patch(string $userId, string $id, Label $postBody, array $optParams = [])
Patch the specified label. (labels.patch)