gl_auth | R Documentation |
Authenticate with Google Language API services
gl_auth(json_file)
gl_auto_auth(...)
json_file |
Character. Path to the JSON authentication file downloaded from your Google Cloud project. |
... |
Additional arguments passed to |
This function authenticates with Google Cloud's language APIs. By default, it uses the JSON file specified
in json_file
. Alternatively, you can set the file path in the environment variable GL_AUTH
to
auto-authenticate when loading the package.
## Not run:
library(googleLanguageR)
gl_auth("path/to/json_file.json")
## End(Not run)
## Not run:
library(googleLanguageR)
gl_auto_auth()
gl_auto_auth(environment_var = "GAR_AUTH_FILE")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.