NAME
Google::RestApi::GmailApi1::Label - Label object for Gmail.
SYNOPSIS
# List all labels
my @labels = $gmail_api->labels();
# Create a new label
my $label = $gmail_api->label()->create(name => 'My Label');
# Get label details
my $details = $label->get();
# Update label
$label->update(name => 'New Name');
# Delete label
$label->delete();
DESCRIPTION
Represents a Gmail label. Supports creating, reading, updating, and deleting labels.
METHODS
create(name => $name, ...)
Creates a new label. Required parameter: name.
Optional parameters: label_list_visibility, message_list_visibility.
get(fields => $fields)
Gets label details. Requires label ID.
update(name => $name, ...)
Updates label properties. Requires label ID.
delete()
Deletes the label. Requires label ID.
label_id()
Returns the label ID.
gmail_api()
Returns the parent GmailApi1 object.
AUTHORS
Robin Murray mvsjes@cpan.org
COPYRIGHT
Copyright (c) 2019-2026 Robin Murray. All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.