googleAuthR: Easy Authentication with Google OAuth2 API

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

AuthorMark Edmondson [aut, cre], Jennifer Bryan [ctb], Johann deBoer [ctb]
Date of publication2016-09-04 20:14:37
MaintainerMark Edmondson <m@sunholo.com>
LicenseMIT + file LICENSE
Version0.4.0
http://code.markedmondson.me/googleAuthR/

View on CRAN

Man pages

applyDataParseFunction: Apply parsing function if a good response

Authentication: R6 environment to store authentication credentials

authReturnCode: Returns the authentication parameter "code" in redirected...

checkGoogleAPIError: Get Google API errors

checkTokenAPI: Check API data token

check.Url: Checks Urls are in right format for API request

createCode: Creates a random character code

doBatchRequest: Batch Requests

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

gar_attach_auto_auth: Auto Authentication function for use within .onAttach

gar_auth: Authorize 'googleAuthR'

gar_auth_js: Shiny JavaScript Google Authorisation [Server Module]

gar_auth_jsUI: Shiny JavaScript Google Authorisation [UI Module]

gar_auth_service: JSON service account authentication

gar_auto_auth: Perform auto authentication

gar_batch: Turn a list of gar_fetch_functions into batch functions

gar_batch_walk: Walk data through batches

gar_create_api_objects: Create the API objects from the Discovery API

gar_create_api_skeleton: Create an API library skeleton

gar_create_package: Create a Google API package

gar_discovery_api: Get meta data details for specified Google API

gar_discovery_apis_list: Get a list of Google API libraries

gar_gadget: Gadget for easy authentication

gar_js_getToken: Create a httr token from a js token

gar_shiny_getAuthUrl: Returns the Google authentication URL

gar_shiny_getToken: Returns the authentication Token.

gar_shiny_getUrl: Get the Shiny Apps URL.

get_google_token: Retrieve Google token from environment and configs for httr

googleAuth: Server side google auth (Shiny Module)

googleAuthR: googleAuthR: Easy Authentication with Google OAuth2 APIs

googleAuthUI: A Login button (Shiny Module)

is.error: Is this a try error?

is_legit_token: Check that token appears to be legitimate

is.NullOb: A helper function that tests whether an object is either NULL...

is_shiny: Is this a valid shiny session object?

loginOutput: Login/logout Shiny output

makeBatchRequest: Make the batch request inner content

myMessage: Customer message log level

parseBatchResponse: Parse batch request

postwalk: Walk into a list

reactiveAccessToken: Create a reactive Google OAuth2 token

renderLogin: Render a Google API Authentication Login/logout button

replace.kv: Create a modified list

retryRequest: ReTry API requests for certain errors using exponential...

revokeEventObserver: Listens for a user revoking authentication

RFC_convert: Converts RFC3339 to as.Date

rmNullObs: Recursively step down into list, removing all such objects

split_vector: split a vector on an element

substitute.list: Substitute in a (nested) list

token_exists: Check if authorization currently in force

with_shiny: Turn a googleAuthR data fetch function into a Shiny...

Files in this package

googleAuthR
googleAuthR/inst
googleAuthR/inst/flexdashbord
googleAuthR/inst/flexdashbord/authDemo.Rmd
googleAuthR/inst/flexdashbord/rsconnect
googleAuthR/inst/flexdashbord/rsconnect/documents
googleAuthR/inst/flexdashbord/rsconnect/documents/authDemo.Rmd
googleAuthR/inst/flexdashbord/rsconnect/documents/authDemo.Rmd/shinyapps.io
googleAuthR/inst/flexdashbord/rsconnect/documents/authDemo.Rmd/shinyapps.io/mark
googleAuthR/inst/flexdashbord/rsconnect/documents/authDemo.Rmd/shinyapps.io/mark/authDemoFlex.dcf
googleAuthR/inst/embed
googleAuthR/inst/embed/ui.R
googleAuthR/inst/embed/server.R
googleAuthR/inst/shiny
googleAuthR/inst/shiny/ui.R
googleAuthR/inst/shiny/server.R
googleAuthR/inst/shiny/readme.md
googleAuthR/inst/shiny/DESCRIPTION
googleAuthR/inst/rstudio
googleAuthR/inst/rstudio/addins.dcf
googleAuthR/inst/doc
googleAuthR/inst/doc/googleAuthR.Rmd
googleAuthR/inst/doc/googleAuthR.html
googleAuthR/tests
googleAuthR/tests/testthat.R
googleAuthR/tests/testthat
googleAuthR/tests/testthat/httr-oauth.rds
googleAuthR/tests/testthat/test-batch.R
googleAuthR/tests/testthat/test-gaAuthR.R
googleAuthR/tests/testthat/auth.json
googleAuthR/tests/testthat/test-discovery.R
googleAuthR/NAMESPACE
googleAuthR/NEWS.md
googleAuthR/R
googleAuthR/R/googleAuthR_discovery.R googleAuthR/R/googleAuthR.R googleAuthR/R/googleAuthR_auto_auth.R googleAuthR/R/googleAuthR_discovery_utilities.R googleAuthR/R/googleAuthR_gadget.R googleAuthR/R/googleAuthR_shiny.R googleAuthR/R/googleAuthR_options.R googleAuthR/R/googleAuthR_batch.R googleAuthR/R/googleAuthR_auth.R googleAuthR/R/googleAuthR_discovery_build.R googleAuthR/R/googleAuthR_generator.R googleAuthR/R/googleAuthR_utility.R
googleAuthR/vignettes
googleAuthR/vignettes/googleAuthR.Rmd
googleAuthR/README.md
googleAuthR/MD5
googleAuthR/build
googleAuthR/build/vignette.rds
googleAuthR/DESCRIPTION
googleAuthR/man
googleAuthR/man/checkTokenAPI.Rd googleAuthR/man/gar_discovery_api.Rd googleAuthR/man/gar_auth_js.Rd googleAuthR/man/gar_create_api_skeleton.Rd googleAuthR/man/split_vector.Rd googleAuthR/man/Authentication.Rd googleAuthR/man/renderLogin.Rd googleAuthR/man/is_legit_token.Rd googleAuthR/man/substitute.list.Rd googleAuthR/man/replace.kv.Rd googleAuthR/man/gar_batch_walk.Rd googleAuthR/man/RFC_convert.Rd googleAuthR/man/createCode.Rd googleAuthR/man/gar_batch.Rd googleAuthR/man/parseBatchResponse.Rd googleAuthR/man/error.message.Rd googleAuthR/man/gar_auto_auth.Rd googleAuthR/man/token_exists.Rd googleAuthR/man/gar_gadget.Rd googleAuthR/man/myMessage.Rd googleAuthR/man/loginOutput.Rd googleAuthR/man/gar_auth_jsUI.Rd googleAuthR/man/gar_create_package.Rd googleAuthR/man/googleAuthUI.Rd googleAuthR/man/gar_discovery_apis_list.Rd googleAuthR/man/gar_js_getToken.Rd googleAuthR/man/is_shiny.Rd googleAuthR/man/gar_auth_service.Rd googleAuthR/man/is.error.Rd googleAuthR/man/postwalk.Rd googleAuthR/man/retryRequest.Rd googleAuthR/man/revokeEventObserver.Rd googleAuthR/man/check.Url.Rd googleAuthR/man/gar_attach_auto_auth.Rd googleAuthR/man/gar_shiny_getUrl.Rd googleAuthR/man/doBatchRequest.Rd googleAuthR/man/applyDataParseFunction.Rd googleAuthR/man/with_shiny.Rd googleAuthR/man/get_google_token.Rd googleAuthR/man/gar_create_api_objects.Rd googleAuthR/man/is.NullOb.Rd googleAuthR/man/checkGoogleAPIError.Rd googleAuthR/man/gar_auth.Rd googleAuthR/man/gar_shiny_getAuthUrl.Rd googleAuthR/man/makeBatchRequest.Rd googleAuthR/man/reactiveAccessToken.Rd googleAuthR/man/authReturnCode.Rd googleAuthR/man/doHttrRequest.Rd googleAuthR/man/gar_shiny_getToken.Rd googleAuthR/man/gar_api_generator.Rd googleAuthR/man/rmNullObs.Rd googleAuthR/man/googleAuth.Rd googleAuthR/man/googleAuthR.Rd
googleAuthR/LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.