NAME

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

SYNOPSIS

# Create an event
my $event = $calendar->event()->create(
  summary => 'Team Meeting',
  start   => { dateTime => '2026-03-01T10:00:00Z' },
  end     => { dateTime => '2026-03-01T11:00:00Z' },
);

# Quick add using natural language
my $event = $calendar->event()->quick_add(text => 'Lunch tomorrow at noon');

# Get event details
my $details = $event->get();

# Update event
$event->update(summary => 'Updated Meeting');

# Move event to another calendar
$event->move(destination => 'other_calendar_id');

# Delete event
$event->delete();

DESCRIPTION

Represents an event on a Google Calendar. Supports creating, reading, updating, deleting, and moving events.

METHODS

create(summary => $text, start => \%start, end => \%end, ...)

Creates a new event. Required parameters: summary, start, end. Start and end are hashrefs with either dateTime (for timed events) or date (for all-day events).

Optional parameters: description, location, attendees.

get(fields => $fields)

Gets event details. Requires event ID.

update(summary => $text, ...)

Updates event properties. Requires event ID.

delete()

Deletes the event. Requires event ID.

quick_add(text => $text)

Creates an event using natural language text parsing.

instances(params => \%params, max_pages => $n, page_callback => $coderef)

Lists instances of a recurring event. Requires event ID. max_pages limits the number of pages fetched (default 0 = unlimited). Supports page_callback, see "PAGE CALLBACKS" in Google::RestApi.

move(destination => $calendar_id)

Moves the event to another calendar. Requires event ID.

event_id()

Returns the event ID.

calendar()

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