google calendar source Google Calendar Source

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Receive event data from Google Calendar.

Configuration Options

The following table summarizes the configuration options available for the google-calendar-source Kamelet:

Property Name Description Type Default Example

accessToken

Access Token

Required The OAuth 2 access token for the Google Calendar application. This token typically expires after an hour. For long term usage, set the refreshToken property.

string

applicationName

Application name

Required The Google Calendar application name.

string

calendarId

Calendar ID

Required The calendar ID to use as the source of event data.

string

clientId

Client Id

Required The Client ID of the Google Calendar application.

string

clientSecret

Client Secret

Required The Client secret of the Google Calendar application.

string

index

Index

Required An index for the Google Calendar endpoint.

string

refreshToken

Refresh Token

Required The OAuth 2 refresh token for the Google Calendar application. The Google Calendar component can obtain a new accessToken whenever the current one expires. Set this value for long term usage.

string

consumeFromNow

Consume from now

Specfies to consume events in the calendar from now on.

boolean

true

delay

Delay

The number of milliseconds before the next poll.

integer

500

syncFlow

Sync Flow

Specifies to sync events for incremental synchronization.

boolean

false

Dependencies

At runtime, the google-calendar-source Kamelet relies upon the presence of the following dependencies:

  • camel:jackson

  • camel:google-calendar

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:google-calendar-source"
      parameters:
        .
        .
        .
      steps:
        - to:
            uri: "kamelet:log-sink"

You can now run it directly through the following command

camel run route.yaml