Last data update: 2014.03.03

Data Source

R Release (3.2.3)
CranContrib
BioConductor
All

Data Type

Packages
Functions
Images
Data set

Classification

Results 1 - 6 of 6 found.
[1] < 1 > [1]  Sort:

gaRequest (Package: GAR) :

This function compiles a Google Analytics API request, retrieves the results and outputs a dataframe. Input formats based on documented Google Analytic's Core Reporting API requirements. The function is designed to loop through the same request to multiple GA account ids. The result will still be one data frame. Additionally, the function attemps to output the error message if there is an issue. By default, the function will use the GAR_ACCESS_TOKEN variable set by the tokenRefresh() function. However, a supplied token value will take priority over stored variabled.
● Data Source: CranContrib
● Keywords:
● Alias: gaRequest
● 0 images

tokenRefresh (Package: GAR) :

This function retrieves a Google Analytics access token using a supplied refresh token. Refresh tokens do not expire and can be traded for an access token repeatedly. The function will pull from the following environmental variables by default: GAR_CLIENT_ID, GAR_CLIENT_SECRET, GAR_REFRESH_TOKEN. Additionally, a temporary variable (GAR_ACCESS_TOKEN) will be stored in a package specific environment (envGAR) containing the newly generated access token for use in the getRequest() function.
● Data Source: CranContrib
● Keywords:
● Alias: tokenRefresh
● 0 images

GAR-package (Package: GAR) :

This package is designed to aid in obtaining initial authentication with Google Analytics using the getCode() and getRefresh() functions.
● Data Source: CranContrib
● Keywords: package
● Alias: GAR, GAR-package
● 0 images

getCode (Package: GAR) :

This function launches an URL in a broswer for authentication. Once authenticated, the value after code= appearing in the resulting URL needs to be manually copied and stored for later use. This code will allow you to get a refresh token that can be refreshed until revoked. This should be a one-time process unless code is revoked,lost or expires before used to get a refresh token. If exists, the environmental variable GAR_CLIENT_ID will be used by default.
● Data Source: CranContrib
● Keywords:
● Alias: getCode
● 0 images

getRefresh (Package: GAR) :

This function retrieves a Google Analytics refresh token using a supplied credentials and code. The function will use GAR_CLIENT_ID, GAR_CLIENT_SECRET environmental variables if present. A refresh token can be traded for an access token repeatedly. As a result, this should only be needed one time unless the refresh token is revoked or lost. The refresh token is stored in an 'GAR_REFRESH_TOKEN' environmental variable.
● Data Source: CranContrib
● Keywords:
● Alias: getRefresh
● 0 images

envGAR (Package: GAR) :

Creates modifiable environment for package variables. The tokenRefresh() function will store temporary access token to GAR_ACCESS_TOKEN in the envGAR environment.
● Data Source: CranContrib
● Keywords:
● Alias: envGAR
● 0 images