R Client
setup.client <- function() {
# Username/password should be provided by the administrator of
# the server.
username <- "[email protected]"
password <- "password"
host <- 'https://petronas.vantage6.ai:443'
api_path <- ''
# Create the client & authenticate
client <- vtg::Client$new(host, api_path=api_path)
client$authenticate(username, password)
return(client)
}
# Create a client
client <- setup.client()Example
Last updated
Was this helpful?