Learn R Programming

⚠️There's a newer version (2.0.2.1) of this package.Take me there.

googleAuthR (version 0.2.0)

Easy Authentication with Google OAuth2 APIs

Description

Create R functions that interact with OAuth2 Google APIs easily, with auto-refresh and Shiny compatibility.

Copy Link

Version

Install

install.packages('googleAuthR')

Monthly Downloads

40,909

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Mark Edmondson

Last Published

January 29th, 2016

Functions in googleAuthR (0.2.0)

error.message

Get the error message
gar_auth

Authorize googleAuthR
check.Url

Checks Urls are in right format for API request
authReturnCode

Returns the authentication parameter "code" in redirected URLs
is.error

Is this a try error?
is.NullOb

A helper function that tests whether an object is either NULL _or_ a list of NULLs
rmNullObs

Recursively step down into list, removing all such objects
replace.kv

Create a modified list
gar_shiny_getUrl

Get the Shiny Apps URL.
doBatchRequest

Batch Requests
is_shiny

Is this a valid shiny session object?
gar_batch

Turn a list of gar_fetch_functions into batch functions
checkGoogleAPIError

Get Google API errors
gar_shiny_getAuthUrl

Returns the Google authentication URL
Authentication

R6 environment to store authentication credentials
substitute.list

Substitute in a (nested) list
with_shiny

Turn a googleAuthR data fetch function into a Shiny compatible one
gar_batch_walk

Walk data through batches
RFC_convert

Converts RFC3339 to as.Date
parseBatchResponse

Parse batch request
applyDataParseFunction

Apply parsing function if a good response
renderLogin

Render a Google API Authentication Login/logout button
loginOutput

Login/logout Shiny output
checkTokenAPI

Check API data token
get_google_token

Retrieve Google token from environment and configs for httr
createCode

Creates a random character code
makeBatchRequest

Make the batch request inner content
doHttrRequest

Get URL content based on if its Shiny or local
revokeEventObserver

Listens for a user revoking authentication
token_exists

Check if authorization currently in force
googleAuthR

googleAuthR: Easy Authentication with Google OAuth2 APIs
gar_shiny_getToken

Returns the authentication Token.
is_legit_token

Check that token appears to be legitimate
retryRequest

ReTry API requests for certain errors using exponential backoff.
gar_auth_service

JSON service account authentication
split_vector

split a vector on an element
reactiveAccessToken

Create a reactive Google OAuth2 token
postwalk

Walk into a list
gar_api_generator

googleAuthR data fetch function generator