start_session.Rd
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,
...
)
character
character. See notes for best practices
character, the base URL for the database server
character, the API end point for the login
character, the URL for the database server login
a curl handle created by
getCurlHandle()
. If one is not provided, it will be
created. Please note, it is best practice to establish a curl
handle when interacting with an API
additional arguments passed to RCurl::getURL()
list
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.