authorize: Authorize R package to access endpoints

View source: R/auth.R

authorizeR Documentation

Authorize R package to access endpoints

Description

This is a function to authorize the R package to access APIs interactively. To learn more about the privacy policy for ottrpal [read here](https://www.ottrproject.org/privacypolicy.html)

Usage

authorize(app_name = NULL, cache = FALSE, ...)

Arguments

app_name

app would you like to authorize? Supported apps are 'google' 'calendly' and 'github'

cache

Should the token be cached as an .httr-oauth file or API keys stored as global options?

...

Additional arguments to send to oauth2.0_token

Value

API token saved to the environment or the cache so it can be grabbed by functions

Examples

## Not run: 

authorize()

authorize("github")

authorize("google")

## End(Not run)

ottrpal documentation built on April 3, 2025, 7:46 p.m.