get_ga_user: Get Google Analytics Accounts

View source: R/google-analytics.R

get_ga_userR Documentation

Get Google Analytics Accounts

Description

This is a function to get the Google Analytics accounts that this user has access to. The scope it uses is the ‘See and download your Google Analytics data' If you don’t this check this box on the OAuth screen this won't work.

Usage

get_ga_user(token = NULL, request_type = "GET")

Arguments

token

credentials for access to Google using OAuth. 'authorize("google")'

request_type

Is this a GET or a POST?

Value

Information about what accounts Google Analytics credentials has access to

Examples

## Not run: 

authorize("google")
get_ga_user()

## End(Not run)

metricminer documentation built on April 4, 2025, 2:41 a.m.