Authorize with GitHub.Source:
This function is run automatically to allow gistr to access your GitHub account.
httr::oauth_app()for GitHub. The default uses an application
gistr_oauthcreated by Scott Chamberlain.
(logical) Force re-authorization?
a named list, with a single slot for
Authorization, with a single
element with the token - this is the expected format needed when passed
down to the http request
There are two ways to authorise gistr to work with your GitHub account:
Generate a personal access token with the gist scope selected, and set it as the
GITHUB_PATenvironment variable per session using
Sys.setenvor across sessions by adding it to your
.Renvironfile or similar. See https://help.github.com/articles/creating-an-access-token-for-command-line-use for help
Interactively login into your GitHub account and authorise with OAuth.
GITHUB_PAT is recommended.