class Calendars extends Resource (View source)

The "calendars" collection of methods.

Typical usage is:

 $calendarService = new Google\Service\Calendar(...);
 $calendars = $calendarService->calendars;

Methods

clear(string $calendarId, array $optParams = [])

Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account. (calendars.clear)

delete(string $calendarId, array $optParams = [])

Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars. (calendars.delete)

get(string $calendarId, array $optParams = [])

Returns metadata for a calendar. (calendars.get)

insert(Calendar $postBody, array $optParams = [])

Creates a secondary calendar. (calendars.insert)

patch(string $calendarId, Calendar $postBody, array $optParams = [])

Updates metadata for a calendar. This method supports patch semantics.

update(string $calendarId, Calendar $postBody, array $optParams = [])

Updates metadata for a calendar. (calendars.update)

Details

clear(string $calendarId, array $optParams = [])

Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account. (calendars.clear)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

array $optParams

Optional parameters.

Exceptions

Exception

delete(string $calendarId, array $optParams = [])

Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars. (calendars.delete)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

array $optParams

Optional parameters.

Exceptions

Exception

Calendar get(string $calendarId, array $optParams = [])

Returns metadata for a calendar. (calendars.get)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

array $optParams

Optional parameters.

Return Value

Calendar

Exceptions

Exception

Calendar insert(Calendar $postBody, array $optParams = [])

Creates a secondary calendar. (calendars.insert)

Parameters

Calendar $postBody
array $optParams

Optional parameters.

Return Value

Calendar

Exceptions

Exception

Calendar patch(string $calendarId, Calendar $postBody, array $optParams = [])

Updates metadata for a calendar. This method supports patch semantics.

(calendars.patch)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Calendar $postBody
array $optParams

Optional parameters.

Return Value

Calendar

Exceptions

Exception

Calendar update(string $calendarId, Calendar $postBody, array $optParams = [])

Updates metadata for a calendar. (calendars.update)

Parameters

string $calendarId

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

Calendar $postBody
array $optParams

Optional parameters.

Return Value

Calendar

Exceptions

Exception