The Google Calendar connector allows you to connect to Google Calendar, which lets you create new events, edit or delete existing events as well as search for events.
The connector uses the Google Calendar API to connect to Google Calendar and perform various operations on Google Calendar.
Connecting to Google Calendar
To use the Google Calendar connector, add the
<googlecalendar.init> element in your configuration before any other Google Calendar operations.
Google Calendar uses the OAuth 2.0 protocol for authentication and authorization. All requests to the Google Calendar API must be authorized by an authenticated user.
To use Google's OAuth 2.0 authentication system, you need to obtain OAuth 2.0 credentials from the Google Developers Console . Then your client application can request for an access token from the Google Authorization Server, extract the token from the response, and send the token to the Google Calendar API that you want to access. For more information on using OAuth 2.0 for authentication, see Using OAuth 2.0 for Login.
To obtain an access token from the OAuth 2.0 Playground, go to OAuth 2.0 Playground and follow the specified instructions.
accessToken: Required - The access token that grants access to the API on behalf of a user.
apiUrl: The URL of the Google Calendar API.
clientId: The id received from Google for your application.
clientSecret: The secret received from Google for your application.
refreshToken : Refresh token obtained from Google oauth 2.0.
Performing operations on Google Calendar
The following sections describe how to perform various operations with the Google Calendar connector. For general information on using connectors and their operations in your ESB configurations, see Using a Connector.
To download the connector, go to https://store.wso2.com/store/assets/esbconnector/googlecalendar, click the Google Calendar connector, and then click Download Connector. Then you can add and enable the connector in your ESB instance.