start_session | R Documentation |
Login to the database server using pre-established login credentials. This will return a token for the session, which is used in all subsequent calls the the API.
start_session(
uname,
pwd,
api_baseurl,
end_point = "/api/auth/login",
api_url = paste0(api_baseurl, end_point),
curl_handle,
...
)
uname |
character |
pwd |
character. See notes for best practices |
api_baseurl |
character, the base URL for the database server |
end_point |
character, the API end point for the login |
api_url |
character, the URL for the database server login |
curl_handle |
a curl handle created by
|
... |
additional arguments passed to |
Best practices are to avoid storing your password in Rscripts that might be shared. To avoid doing this, you can set the credentials in a separate file, and read that file into R to set the login credentials.
list
Matt Espe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.