Like Jitsu? Give us a star on β GitHub!
Google Sheets
Overview
The Google Sheets connector pulls data from Google Sheets. Each sheet is treated as separate collection and being synced to separate tableThis source is using singer-tap-google-sheets
tab. Learn more how Singer-based sources work
How to connect
Following authorization methods are available for Google Sheets- OAuth β you'll need to provide Client Secret / Client Id (you can obtain in in Google Cloud Console) and get a refresh token. Jitsu developed a small CLI utility for obtaining the token
1. Obtaining access through OAuth
Jitsu requires 3 parameters for accessing Google Sheets:client_id
- An unique client identifier that is obtained from Google Cloud Consoleclient_secret
- A client secret string that is obtained from Google Cloud Consolerefresh_token
- Access token. It could be generated by jitsucom/oauthcli
Getting client_id
and client_secret
- Go to the API Credentials page
- Click "+ Create Credentials" β "OAuth client ID" β select Desktop app as application type
- Note: If you haven't configured OAuth Consent Screen yet, Google asks to configure it. The screen type should be 'External'
Getting refresh_token
Copy Client ID and Client Secret parameters, use them for generating refresh token with jitsucom/oauthcli tool:./authorizer.py --client_id=<YOUR CLIENT ID> --client_secret=<YOUR CLIENT SECRET> --scope='https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/spreadsheets.readonly'
Connection Parameters
Parameter | Documentation |
---|---|
config.type *One of: OAuth (required; default: OAuth ) | Jitsu provides two types for authorizing access to Google Services:
|
config.client_id oauthSecret (not required) | Use Jitsu OAuth CLI Util to obtain oauth credentials |
config.client_secret oauthSecret (not required) | Use Jitsu OAuth CLI Util to obtain oauth credentials |
config.refresh_token *string (required) | Use Jitsu OAuth CLI Util to obtain oauth credentials |
config.spreadsheet_id *string (required) | |
config.start_date *isoUtcDate (required; default: 2021-01-01T00:00:00.000Z ) |