From the course: Building Data Apps with R and Shiny: Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Shiny and .httr-oauth files

Shiny and .httr-oauth files

From the course: Building Data Apps with R and Shiny: Essential Training

Start my 1-month free trial

Shiny and .httr-oauth files

- [Instructor] Many oauth data packages use .httr-oauth files to store API credentials. .Httr-oauth files are great, because they can store multiple API tokens without any manual interference. If you're using RStudio projects, the .httr-oauth file will always be saved into your project directory. So how do we know that we're using a package that uses .httr-oauth files? Sadly, it never really says on the package tin. Oh hey, are you httr-oauth files, that's how you use me communicate with an API, and it also fairly difficult to figure out from the documentation whether a package is using the .httr-oauth file to store tokens. The simplest way to figure out whether a package uses this approach to API tokens is to try and use the package, and look for the following message in the console asking whether you'd like to store local files with your oauth tokens in it. If you see this message, you want to type yes and hit enter, and then your tokens will be stored locally for you to reuse…

Contents