Google Sheets
Google Sheets is a web-based application that enables users to create and update spreadsheets in real time.
Google Sheets integration will generate tables containing data related to metadata and the individual sheets within a spreadsheet.
請參閱 Schema 區段以取得可用於複寫的物件清單。Preparing for authentication
To access your data, you need to authenticate the connection with your account credentials.
You need administrator permissions in your Google Search Console account.
To enable Google Sheets API:
- Log into your Google Search Console account.
- Create or select a project.
- Navigate to APIs & Services > + Enable APIs and Services.
- Search for Google Sheets API.
- Click Enable.
To retrieve your client ID and secret:
- Log into your Google Search Console account.
- Create or select a project.
- Navigate to APIs & Services > Credentials.
- Select your OAuth app in the OAuth 2.0 Client IDs section. The client ID and secret are displayed.
- Make sure Authorized Redirect URIs is set to https://connector.qlik.com/auth/oauth/v3.htm.
- To create a new client ID, click Create Credentials.
- In the Data Access section, click Add or remove scopes.
- Select the following scopes:
- .../auth/userinfo.profile
- .../auth/spreadsheets.readonly
- .../auth/drive.metadata.readonly
- Click Update.
- Click Save
- In the Audience section, set User types to Internal.
Set up your OAuth 2.0 app in Google Cloud Platform for internal use. If you set the audience to external, you may need to submit the OAuth 2.0 app for verification by Google.
Creating the connection
如需詳細資訊,請參閱連線到 SaaS 應用程式。
在您填入所需的連線設定時按一下驗證。
可能會要求您登入來源應用程式。
會顯示一個視窗,其中有驗證代碼。
將代碼複製到剪貼簿並返回連線對話方塊。
在使用來源提供的代碼完成驗證中貼上代碼並按一下驗證。
提示備註您可能需要向下捲動以查看此欄位。若狀態是已驗證,代表已進行了驗證。
在連線名稱中提供連線名稱。
選取開啟連線中繼資料以在建立後定義連線的中繼資料。
| Setting | Description |
|---|---|
| Data gateway | 如您的使用情況有需要,選取 資料移動閘道。 資訊備註 此欄位無法用於 Qlik Talend Cloud 啟動器 訂閱,因為不支援 資料移動閘道。若您有另一個訂閱層級且不想使用 資料移動閘道,選取無。 如需關於 資料移動閘道 福利的資訊以及需要此項的使用案例,請參閱 Qlik 資料閘道 - 資料移動。 |
| Start Date | 以 |
| Spreadsheet ID | The part of the URL when viewing or editing a Google sheet.
Example: For more information, see the Google documentation. |
| Client ID | Client ID. |
| Client Secret | Client secret. |
Schema
Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.
The schema and info displayed below is for version 1.
Depending on your destination, table and column names may not appear as they are outlined below.
sheet_metadata
The sheet_metadata table contains metadata about the sheets within the spreadsheet defined in the integration’s settings.
Replication Method | Full Table |
Primary Key | sheetId |
| Useful links |
sheets_loaded
The sheets_loaded table contains metadata about individual sheets loaded to your destination.
Replication Method | Full Table |
Primary Keys | sheetId spreadsheetId loadDate |
| Useful links |
spreadsheet_metadata
The spreadsheet_metadata table contains metadata about the spreadsheet defined in the integration’s settings.
Replication Method | Full Table |
Primary Key | spreadsheetId |
| Useful links |