Nothing
#' Pull a project configuration
#'
#' Returns a project configuration json string
#'
#' @param projectId The Project id for which to retrieve information
#' @param expansion Comma-delimited list of additional project metadata fields to include on response. Available values : reportSuiteName, shares, tags, accessLevel, modified, externalReferences, definition
#' @param locale Locale Default value : en_US
#' @param debug Set to `TRUE` to publish the full JSON request(s) being sent to the API to the console when the
#' function is called. The default is `FALSE`.
#' @param company_id Company ID. If an environment variable called `AW_COMPANY_ID` exists in `.Renviron` or
#' elsewhere and no `company_id` argument is provided, then the `AW_COMPANY_ID` value will be used.
#' Use [get_me()] to get a list of available `company_id` values.
#'
#' @return A json string
#' @export
#'
aw_get_project_config <- function(projectId = NULL,
expansion = NULL,
locale = 'en_US',
debug = FALSE,
company_id = Sys.getenv("AW_COMPANY_ID")
){
query_params <- list(
expansion = expansion,
locale = locale
)
req_path <- glue::glue("projects/{projectId}")
urlstructure <- paste(req_path, format_URL_parameters(query_params), sep = "?")
res <- aw_call_api(req_path = urlstructure, debug = debug, company_id = company_id)
jsonlite::fromJSON(res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.