R/experiments.R

Defines functions list_experiments get_experiment

Documented in get_experiment list_experiments

#' @template get_experiments
#' @include mgmt.R
#' @export
get_experiment <- function(accountId, webPropertyId, profileId, experimentId, token) {
    path <- sprintf("management/accounts/%s/webproperties/%s/profiles/%s/experiments/%s",
                    accountId, webPropertyId, profileId, experimentId)
    get_mgmt(path, token)
}

#' @template list_experiments
#' @include mgmt.R
#' @export
list_experiments <- function(accountId, webPropertyId, profileId, start.index = NULL, max.results = NULL, token) {
    path <- sprintf("management/accounts/%s/webproperties/%s/profiles/%s/experiments",
                    accountId, webPropertyId, profileId)
    list_mgmt(path, list(start.index = start.index, max.results = max.results), token)
}

Try the RGA package in your browser

Any scripts or data that you put into this service are public.

RGA documentation built on May 2, 2019, 6:47 a.m.