Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions R/yt_oauth.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
#' to TRUE. By default, it is set to FALSE.
#' The function launches a browser to allow you to authorize the application
#'
#' If a browser cannot be opened, pass \code{use_oob = TRUE} to
#' \code{yt_oauth()} so authentication can be completed using an
#' out-of-band code.
#' Delete the \code{.httr-oauth} file in the working directory to force
#' re-authentication.
#' @param app_id client id; required; no default
#' @param app_secret client secret; required; no default
#' @param scope Character. \code{ssl}, \code{basic},
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ Guide](https://developers.google.com/youtube/v3/guides/authentication).
yt_oauth("app_id", "app_password")
```

If your session cannot open a browser window for authentication, pass
`use_oob = TRUE` to `yt_oauth()` so that authentication can be completed
via an out-of-band code.

To force re-authentication at any time, delete the `.httr-oauth` file in
your working directory.

**Note:** If you are on ubuntu, you may have to run the following before
doing anything:

Expand Down
2 changes: 2 additions & 0 deletions man/yt_oauth.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading