Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google Adapter Config Example #44

Merged
merged 3 commits into from
Aug 1, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ To get your calendar ID, use the [Microsoft Graph Explorer](https://developer.mi


### Google Adapter Setup


+ Open the [Google Cloud Console](https://console.cloud.google.com/home/dashboard) and login.
+ Now you can either select *New Project* at the top left of the screen or just [click here](https://console.cloud.google.com/projectcreate)
+ Create a new project, name it as you like but make sure that the Billing Account is set correctly.
Expand All @@ -67,3 +69,19 @@ To get your calendar ID, use the [Microsoft Graph Explorer](https://developer.mi
+ You'll see a popup open. Here you can simply **Download JSON**. This will download the `credentials.json` file required.

![client-id-popup](../assets/gcloud-oauth-client.png)

```yaml
sink:
adapter:
type: google
calendar: "jerrymccoopface@example.com"
oAuth:
clientId: "<clientID>"
clientKey: "<clientSecret>"
```

Important: When retrieving the credentials from google, you'll get a `clientId`
and a `clientSecret`. Make sure to add the `clientSecret` to the `clientKey`
setting in your CalendarSync configuration.

If you want to use the created OAuth Application also with accounts outside of your Google Workspace, make sure to set the Usertype to `external` in the `OAuth Consent Screen` Menu.