authenticate | R Documentation |
Authenticates the user with the 'Via Foundry API' using their username and password. Retrieves a bearer token and saves it along with the 'API url' to a configuration file.
authenticate(
hostname,
username = NULL,
password = NULL,
identity_type = 1,
redirect_uri = "http://localhost",
config_path = DEFAULT_CONFIG_PATH,
overwrite = FALSE
)
hostname |
The API url. |
username |
The login username. |
password |
The login password (optional; will prompt if not provided). |
identity_type |
The identity type (default is 1). |
redirect_uri |
The redirect 'URI'. |
config_path |
Path to save the configuration file. |
overwrite |
Logical flag to overwrite the existing configuration file (default is FALSE). |
None. Saves the bearer token to the configuration file and sets the global config path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.