Connection | R Documentation |
Allows to establish, renew, check status and close the connection with MicroStrategy Intelligence Server.
base_url
URL of the MicroStrategy REST API server.
username
Your username.
password
Your password.
project_name
Name of the connected MicroStrategy Project. One of project name or project id is necessary.
project_id
ID of the connected MicroStrategy Project. One of project name or project id is necessary.
login_mode
Specifies authentication mode to use. Standard = 1 (default) or LDAP = 16.
ssl_verify
If True (default), verifies the server's SSL certificates with each request.
web_version
The current web version
iserver_version
The current I-Server version
auth_token
The authentication token returned by the I-Server
cookies
Cookies
identity_token
Identity token for delegated session. Used for connection initialized by GUI.
verbose
If True (default), displays additional messages.
new()
Establishes new connection with MicroStrategy Intelligence Server.
Connection$new( base_url, username = NULL, password = NULL, project_name = NULL, project_id = NULL, login_mode = 1, ssl_verify = TRUE, proxies = NULL, identity_token = NULL, verbose = TRUE )
base_url
URL of the MicroStrategy REST API server.
username
Your username.
password
Your password.
project_name
Name of the connected MicroStrategy Project. One of project name or project id is necessary.
project_id
ID of the connected MicroStrategy Project. One of project name or project id is necessary.
login_mode
Specifies authentication mode to use. Standard = 1 (default) or LDAP = 16.
ssl_verify
If True (default), verifies the server's SSL certificates with each request.
proxies
If NULL (default) proxy is not defined. To set proxy use formula: (<username>:<password>@)<ip_address>:<port> ()-optional
identity_token
Identity token for delegated session. Used for connection initialized by GUI.
verbose
If True, displays additional messages. FALSE by default.
A new "Connection" object.
connect()
Establishes new connection with MicroStrategy Intelligence Server, or renews active connection.
Connection$connect()
delegate()
Delegates identity token to get authentication token and connect to MicroStrategy Intelligence Server
Connection$delegate()
get_identity_token()
Gets identity token using existing authentication token
Connection$get_identity_token()
close()
Closes a connection with MicroStrategy REST API.
Connection$close()
renew()
Renews connection with MicroStrategy REST API.
Connection$renew()
status()
Displays status of the connection with MicroStrategy REST API.
Connection$status()
clone()
The objects of this class are cloneable with this method.
Connection$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
# Create a connection object.
connection = Connection$new(base_url, username, password, project_name)
# Connect or renew connection.
connection$connect()
# Check connection status.
connection$status()
# Renew connection to reset timeout counter.
connection$renew()
# Close connection.
connection$close()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.