Events
class Events extends Resource (View source)
The "events" collection of methods.
Typical usage is:
$calendarService = new Google\Service\Calendar(...);
$events = $calendarService->events;
Methods
Deletes an event. (events.delete)
Returns an event based on its Google Calendar ID. To retrieve an event using its iCalendar ID, call the events.list method using the iCalUID parameter.
Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an eventType of default may be imported. Deprecated behavior: If a non-default event is imported, its type will be changed to default and any event-type-specific properties it may have will be dropped. (events.import)
Returns instances of the specified recurring event. (events.instances)
Returns events on the specified calendar. (events.listEvents)
Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime, workingLocation and fromGmail events cannot be moved. (events.move)
Creates an event based on a simple text string. (events.quickAdd)
Details
delete(string $calendarId, string $eventId, array $optParams = [])
Deletes an event. (events.delete)
Event
get(string $calendarId, string $eventId, array $optParams = [])
Returns an event based on its Google Calendar ID. To retrieve an event using its iCalendar ID, call the events.list method using the iCalUID parameter.
(events.get)
Event
import(string $calendarId, Event $postBody, array $optParams = [])
Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an eventType of default may be imported. Deprecated behavior: If a non-default event is imported, its type will be changed to default and any event-type-specific properties it may have will be dropped. (events.import)
Event
insert(string $calendarId, Event $postBody, array $optParams = [])
Creates an event. (events.insert)
Events
instances(string $calendarId, string $eventId, array $optParams = [])
Returns instances of the specified recurring event. (events.instances)
Events
listEvents(string $calendarId, array $optParams = [])
Returns events on the specified calendar. (events.listEvents)
Event
move(string $calendarId, string $eventId, string $destination, array $optParams = [])
Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime, workingLocation and fromGmail events cannot be moved. (events.move)
Event
patch(string $calendarId, string $eventId, Event $postBody, array $optParams = [])
Updates an event. This method supports patch semantics. (events.patch)
Event
quickAdd(string $calendarId, string $text, array $optParams = [])
Creates an event based on a simple text string. (events.quickAdd)
Event
update(string $calendarId, string $eventId, Event $postBody, array $optParams = [])
Updates an event. (events.update)