NAME

Google::RestApi::CalendarApi3::CalendarList - CalendarList object for Google Calendar.

SYNOPSIS

# Get a calendar list entry
my $cl = $cal_api->calendar_list(id => 'primary');
my $info = $cl->get();

# Insert a calendar into the user's list
my $cl = $cal_api->calendar_list()->insert(id => 'calendar_id@group.calendar.google.com');

# Update display settings
$cl->update(summary_override => 'My Custom Name', color_id => '7');

# Remove from the user's list
$cl->delete();

DESCRIPTION

Represents an entry in the user's calendar list. This manages the user's view and display settings for calendars, not the calendars themselves.

METHODS

get(fields => $fields)

Gets calendar list entry details. Requires calendar list ID.

insert(id => $calendar_id)

Inserts a calendar into the user's calendar list.

update(summary_override => $name, color_id => $id, ...)

Updates display settings. Requires calendar list ID.

delete()

Removes the calendar from the user's list. Requires calendar list ID.

calendar_list_id()

Returns the calendar list entry ID.

calendar_api()

Returns the parent CalendarApi3 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.