Questo contenuto non è disponibile nella lingua selezionata.

6.7. Google Spreadsheet Resource Adapter Properties


6.7.1. Google Spreadsheet Resource Adapter Properties

The following table describes the configuration properties that can be configured for the Google Spreadsheet resource adapter:
Expand
Config property
Description
AuthMethod
This is the authentication method used to access Google. This property can be set to either ClientLogin or OAuth2. If the setting is ClientLogin it is necessary to provide two additional properties: Username and Password. If the setting is OAuth2 it is necessary to provide a RefreshToken.
RefreshToken
This is required only if AuthMethod=OAuth2
Username
Username for the Google account. Required only if AuthMethod=ClientLogin
Password
Password for the Google account. Required only if AuthMethod=ClientLogin
SpreadsheetName
The name of the spreadsheet to which this resource adapter is connecting. Required.
BatchSize
The maximum number of rows that can be fetched at a time. Default is 4096.

6.7.2. Obtaining an OAuth Refresh Token

When using the Google Spreadsheet resource adapter with OAuth authentication, you will need to obtain an OAuth refresh token.

Procedure 6.1. Obtaining an OAuth Refresh Token

  1. Get an authorization code

    Click on the following link: Get Authorization Code
    Click on Allow access to allow the Teiid Google Connector to access the Google account in which the spreadsheet resides.
  2. Obtain the refresh token

    Copy the authorization code from the previous step into the code field of the following POST request and run it from the command line:
    curl \--data-urlencode code=AUTH_CODE \
    --data-urlencode client_id=217138521084.apps.googleusercontent.com \
    --data-urlencode client_secret=gXQ6-lOkEjE1lVcz7giB4Poy \
    --data-urlencode redirect_uri=urn:ietf:wg:oauth:2.0:oob \
    --data-urlencode grant_type=authorization_code https://accounts.google.com/o/oauth2/token
    Copy to Clipboard Toggle word wrap
    The refresh token will be in the response.
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat