Learn R Programming

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

googleAuthR (version 0.3.0)

Easy Authentication with Google OAuth2 API

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.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Mark Edmondson

Last Published

May 9th, 2016

Functions in googleAuthR (0.3.0)

gar_auth

Authorize googleAuthR
Authentication

R6 environment to store authentication credentials
gar_batch_walk

Walk data through batches
is.NullOb

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

Returns the authentication Token.
parseBatchResponse

Parse batch request
createCode

Creates a random character code
checkTokenAPI

Check API data token
doBatchRequest

Batch Requests
postwalk

Walk into a list
is_legit_token

Check that token appears to be legitimate
gar_gadget

Gadget for easy authentication
makeBatchRequest

Make the batch request inner content
gar_auth_service

JSON service account authentication
token_exists

Check if authorization currently in force
renderLogin

Render a Google API Authentication Login/logout button
reactiveAccessToken

Create a reactive Google OAuth2 token
authReturnCode

Returns the authentication parameter "code" in redirected URLs
RFC_convert

Converts RFC3339 to as.Date
gar_shiny_getAuthUrl

Returns the Google authentication URL
myMessage

Customer message log level
gar_batch

Turn a list of gar_fetch_functions into batch functions
substitute.list

Substitute in a (nested) list
rmNullObs

Recursively step down into list, removing all such objects
revokeEventObserver

Listens for a user revoking authentication
checkGoogleAPIError

Get Google API errors
gar_shiny_getUrl

Get the Shiny Apps URL.
doHttrRequest

Get URL content based on if its Shiny or local
error.message

Get the error message
gar_api_generator

googleAuthR data fetch function generator
check.Url

Checks Urls are in right format for API request
loginOutput

Login/logout Shiny output
with_shiny

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

split a vector on an element
get_google_token

Retrieve Google token from environment and configs for httr
is_shiny

Is this a valid shiny session object?
is.error

Is this a try error?
replace.kv

Create a modified list
googleAuthUI

A Login button (Shiny Module)
applyDataParseFunction

Apply parsing function if a good response
googleAuth

Server side google auth (Shiny Module)
googleAuthR

googleAuthR: Easy Authentication with Google OAuth2 APIs
retryRequest

ReTry API requests for certain errors using exponential backoff.