R/profiles.R

Defines functions list_profiles get_profile

Documented in get_profile list_profiles

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

#' @template list_profiles
#' @include mgmt.R
#' @export
list_profiles = function(accountId = "~all", webPropertyId = "~all", start.index = NULL, max.results = NULL, token) {
    path <- sprintf("management/accounts/%s/webproperties/%s/profiles",
                    accountId, webPropertyId)
    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.