> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.GoogleCalendarApi.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface GoogleCalendarApi

```typescript
interface GoogleCalendarApi {
    createEvent(
        input: GoogleCalendarCreateEventInput,
    ): Promise<GoogleCalendarEventResult>;
    deleteEvent(
        input: GoogleCalendarDeleteEventInput,
    ): Promise<GoogleCalendarDeleteEventResult>;
    ensureAccess(
        input: ConnectorEnsureAccessInput<GoogleCalendarConnectorOperation>,
    ): Promise<ConnectorEnsureAccessResult<GoogleCalendarConnectorOperation>>;
    freebusy(
        input: GoogleCalendarFreebusyInput,
    ): Promise<GoogleCalendarFreebusyResult>;
    listAccounts(): Promise<GoogleCalendarListAccountsResult>;
    listCalendars(
        input?: GoogleCalendarListCalendarsInput,
    ): Promise<GoogleCalendarListCalendarsResult>;
    listEvents(
        input: GoogleCalendarListEventsInput,
    ): Promise<GoogleCalendarListEventsResult>;
    updateEvent(
        input: GoogleCalendarUpdateEventInput,
    ): Promise<GoogleCalendarEventResult>;
}
```

Types: [createEvent](#createevent-1), [GoogleCalendarCreateEventInput](core.GoogleCalendarCreateEventInput.md), [GoogleCalendarEventResult](core.GoogleCalendarEventResult.md), [deleteEvent](#deleteevent-1), [GoogleCalendarDeleteEventInput](core.GoogleCalendarDeleteEventInput.md), [GoogleCalendarDeleteEventResult](core.GoogleCalendarDeleteEventResult.md), [ensureAccess](#ensureaccess-1), [ConnectorEnsureAccessInput](core.ConnectorEnsureAccessInput.md), [GoogleCalendarConnectorOperation](../types/core.Supporting_types.GoogleCalendarConnectorOperation.md), [ConnectorEnsureAccessResult](core.ConnectorEnsureAccessResult.md), [freebusy](#freebusy-1), [GoogleCalendarFreebusyInput](core.GoogleCalendarFreebusyInput.md), [GoogleCalendarFreebusyResult](core.GoogleCalendarFreebusyResult.md), [listAccounts](#listaccounts-1), [GoogleCalendarListAccountsResult](core.GoogleCalendarListAccountsResult.md), [listCalendars](#listcalendars-1), [GoogleCalendarListCalendarsInput](core.GoogleCalendarListCalendarsInput.md), [GoogleCalendarListCalendarsResult](core.GoogleCalendarListCalendarsResult.md), [listEvents](#listevents-1), [GoogleCalendarListEventsInput](core.GoogleCalendarListEventsInput.md), [GoogleCalendarListEventsResult](core.GoogleCalendarListEventsResult.md), [updateEvent](#updateevent-1), [GoogleCalendarUpdateEventInput](core.GoogleCalendarUpdateEventInput.md)

##### Index

### <a id="methods"></a>Methods

[createEvent](#createevent) [deleteEvent](#deleteevent) [ensureAccess](#ensureaccess) [freebusy](#freebusy) [listAccounts](#listaccounts) [listCalendars](#listcalendars) [listEvents](#listevents) [updateEvent](#updateevent)

## <a id="methods-1"></a>Methods

### <a id="createevent"></a>createEvent

*   <a id="createevent-1"></a>
    
    ```typescript
    createEvent(
        input: GoogleCalendarCreateEventInput,
    ): Promise<GoogleCalendarEventResult>
    ```
    
    Types: [GoogleCalendarCreateEventInput](core.GoogleCalendarCreateEventInput.md), [GoogleCalendarEventResult](core.GoogleCalendarEventResult.md)
    
    #### Parameters
    
    *   input: [GoogleCalendarCreateEventInput](core.GoogleCalendarCreateEventInput.md)
    
    #### Returns Promise<[GoogleCalendarEventResult](core.GoogleCalendarEventResult.md)\>
    

### <a id="deleteevent"></a>deleteEvent

*   <a id="deleteevent-1"></a>
    
    ```typescript
    deleteEvent(
        input: GoogleCalendarDeleteEventInput,
    ): Promise<GoogleCalendarDeleteEventResult>
    ```
    
    Types: [GoogleCalendarDeleteEventInput](core.GoogleCalendarDeleteEventInput.md), [GoogleCalendarDeleteEventResult](core.GoogleCalendarDeleteEventResult.md)
    
    #### Parameters
    
    *   input: [GoogleCalendarDeleteEventInput](core.GoogleCalendarDeleteEventInput.md)
    
    #### Returns Promise<[GoogleCalendarDeleteEventResult](core.GoogleCalendarDeleteEventResult.md)\>
    

### <a id="ensureaccess"></a>ensureAccess

*   <a id="ensureaccess-1"></a>
    
    ```typescript
    ensureAccess(
        input: ConnectorEnsureAccessInput<GoogleCalendarConnectorOperation>,
    ): Promise<ConnectorEnsureAccessResult<GoogleCalendarConnectorOperation>>
    ```
    
    Types: [ConnectorEnsureAccessInput](core.ConnectorEnsureAccessInput.md), [GoogleCalendarConnectorOperation](../types/core.Supporting_types.GoogleCalendarConnectorOperation.md), [ConnectorEnsureAccessResult](core.ConnectorEnsureAccessResult.md)
    
    #### Parameters
    
    *   input: [ConnectorEnsureAccessInput](core.ConnectorEnsureAccessInput.md)<[GoogleCalendarConnectorOperation](../types/core.Supporting_types.GoogleCalendarConnectorOperation.md)\>
    
    #### Returns Promise<[ConnectorEnsureAccessResult](core.ConnectorEnsureAccessResult.md)<[GoogleCalendarConnectorOperation](../types/core.Supporting_types.GoogleCalendarConnectorOperation.md)\>\>
    

### <a id="freebusy"></a>freebusy

*   <a id="freebusy-1"></a>
    
    ```typescript
    freebusy(
        input: GoogleCalendarFreebusyInput,
    ): Promise<GoogleCalendarFreebusyResult>
    ```
    
    Types: [GoogleCalendarFreebusyInput](core.GoogleCalendarFreebusyInput.md), [GoogleCalendarFreebusyResult](core.GoogleCalendarFreebusyResult.md)
    
    #### Parameters
    
    *   input: [GoogleCalendarFreebusyInput](core.GoogleCalendarFreebusyInput.md)
    
    #### Returns Promise<[GoogleCalendarFreebusyResult](core.GoogleCalendarFreebusyResult.md)\>
    

### <a id="listaccounts"></a>listAccounts

*   <a id="listaccounts-1"></a>
    
    ```typescript
    listAccounts(): Promise<GoogleCalendarListAccountsResult>
    ```
    
    Types: [GoogleCalendarListAccountsResult](core.GoogleCalendarListAccountsResult.md)
    
    #### Returns Promise<[GoogleCalendarListAccountsResult](core.GoogleCalendarListAccountsResult.md)\>
    

### <a id="listcalendars"></a>listCalendars

*   <a id="listcalendars-1"></a>
    
    ```typescript
    listCalendars(
        input?: GoogleCalendarListCalendarsInput,
    ): Promise<GoogleCalendarListCalendarsResult>
    ```
    
    Types: [GoogleCalendarListCalendarsInput](core.GoogleCalendarListCalendarsInput.md), [GoogleCalendarListCalendarsResult](core.GoogleCalendarListCalendarsResult.md)
    
    #### Parameters
    
    *   `Optional`input: [GoogleCalendarListCalendarsInput](core.GoogleCalendarListCalendarsInput.md)
    
    #### Returns Promise<[GoogleCalendarListCalendarsResult](core.GoogleCalendarListCalendarsResult.md)\>
    

### <a id="listevents"></a>listEvents

*   <a id="listevents-1"></a>
    
    ```typescript
    listEvents(
        input: GoogleCalendarListEventsInput,
    ): Promise<GoogleCalendarListEventsResult>
    ```
    
    Types: [GoogleCalendarListEventsInput](core.GoogleCalendarListEventsInput.md), [GoogleCalendarListEventsResult](core.GoogleCalendarListEventsResult.md)
    
    #### Parameters
    
    *   input: [GoogleCalendarListEventsInput](core.GoogleCalendarListEventsInput.md)
    
    #### Returns Promise<[GoogleCalendarListEventsResult](core.GoogleCalendarListEventsResult.md)\>
    

### <a id="updateevent"></a>updateEvent

*   <a id="updateevent-1"></a>
    
    ```typescript
    updateEvent(
        input: GoogleCalendarUpdateEventInput,
    ): Promise<GoogleCalendarEventResult>
    ```
    
    Types: [GoogleCalendarUpdateEventInput](core.GoogleCalendarUpdateEventInput.md), [GoogleCalendarEventResult](core.GoogleCalendarEventResult.md)
    
    #### Parameters
    
    *   input: [GoogleCalendarUpdateEventInput](core.GoogleCalendarUpdateEventInput.md)
    
    #### Returns Promise<[GoogleCalendarEventResult](core.GoogleCalendarEventResult.md)\>
