xmart4_api | R Documentation |
Function that provides access to the xMart4 API. Currently functionality is limited to accessing lists of tables within marts and the data within them, but additional functionality can be built-in as requested.
xmart4_api( mart, table = NULL, xmart_server = c("UAT", "PROD"), top = NULL, query = NULL, format = c("none", "csv", "streaming"), full_table = TRUE, auth_type = "client", token = NULL )
mart |
Name of the xMart4 mart |
table |
Name of a table within the mart, otherwise |
xmart_server |
Either 'UAT' (the default) or 'PROD' |
top |
Number of rows of a table to return |
query |
A single string fitting the Odata protocol
that must start with |
format |
Specification of the output format to be returned by the xMart API.
Defaults to |
full_table |
Logical, whether or not to load all the rows in a specified table,
defaults to |
auth_type |
Type of authorization to use for the token authorization. If "client" (the default), it uses an AzureAD client setup. The old "wims" method has been discontinued. |
token |
Access token for xMart4 server. If NULL (the default), the package automatically creates and manages access for the user if Azure client ID and secret set up properly. See |
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.