Learn R Programming

bigrquery (version 1.1.0)

get_access_cred: Get and set access credentials

Description

Since the majority of bigquery API requests need to be authenticated bigrquery maintains package-wide OAuth authentication credentials in a private environment. In ordinary operation, you should never need to use these functions but they are provided in case you want to switch credentials mid-stream. You may can use set_service_token for non-interactive authentication.

Usage

get_access_cred()

has_access_cred()

set_access_cred(value)

reset_access_cred()

set_oauth2.0_cred(app = NULL)

set_service_token(service_token)

Arguments

value

new access credentials, as returned by httr::oauth2.0_token()

app

A Google OAuth application created using oauth_app

service_token

A JSON string, URL or file, giving or pointing to the service token file.

Value

get_access_cred() OAuth2 credentials token

has_access_cred() TRUE if credentials are set

API console

To manage your google projects, use the API console: https://console.cloud.google.com/