Lista de etiquetas. Ten en cuenta que cada recurso de etiqueta solo contiene un id, name, messageListVisibility, labelListVisibility y type. El método labels.get puede recuperar detalles adicionales de la etiqueta.
Alcances de autorización
Se necesita uno de los siguientes permisos de OAuth:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-09-05 (UTC)"],[[["Lists all labels in a user's mailbox, providing details like ID, name, and visibility."],["Requires an HTTP GET request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/labels`, replacing `{userId}` with the user's email address or `me`."],["The response body includes a list of labels, each containing basic information; use `labels.get` for detailed label data."],["Requires authorization with specific OAuth scopes, such as `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.readonly`."]]],[]]