Learn R Programming

googlePubsubR (version 0.0.4)

pubsub_auth: Authenticate a Pub/Sub client

Description

Authenticate a Pub/Sub client

Usage

pubsub_auth(
  json_file = Sys.getenv("GCP_AUTH_FILE"),
  token = NULL,
  email = NULL
)

Value

None, called for side effects

Arguments

json_file

character Path of the JSON file containing credentials for a GCP service account

token

character An existing authentication token

email

character The email to default authentication to

See Also

Other Auth functions: ps_project_get(), ps_project_set()