Este conteúdo não está disponível no idioma selecionado.

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
    The refresh token will be in the response.
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat
Voltar ao topo