Organizes the arguments into a json string and then structures the data after the internal function makes the api call. Only runs a single dimension with as many metrics as you want.

aw_workspace_report(
  req_body = "",
  company_id = Sys.getenv("AW_COMPANY_ID"),
  client_id = Sys.getenv("AW_CLIENT_ID"),
  client_secret = Sys.getenv("AW_CLIENT_SECRET")
)

Arguments

req_body

The json string copied from Workspace

company_id

Company Id. Taken from the global environment by default if not provided.

client_id

Set in environment args, or pass directly here

client_secret

Set in environment args, or pass directly here

Value

A data frame of dimensions and metrics