Learn R Programming

rdrop2 (version 0.6)

drop_auth: Authentication for Dropbox

Description

This function authenticates you into Dropbox. The documentation for the https://www.dropbox.com/developers/core/docs{core Dropbox API} provides more details including alternate methods if you desire to reimplement your own.

Usage

drop_auth(new_user = FALSE, key = "mmhfsybffdom42w",
  secret = "l8zeqqqgm1ne5z0", cache = TRUE)

Arguments

new_user
Default is FALSE. Set to TRUE if you need to switch to a new user account or just flush existing token.
key
Your application key. rdrop2 already comes with a key/secret but you are welcome to swap out with our own. Since these keys are shipped with the package, there is a small chance they could be voided if someone abuses the key. So if you plan to use this in
secret
Your application token. rdrop2 already comes with a key/secret but you are welcome to swap out with our own.
cache
By default your credentials are locally cached in a file called .httr-oauth. Set to FALSE if you need to authenticate separately each time.

Examples

Run this code
drop_auth()
# If you want to overwrite an existing tokend and switch to a new user,
# set new_user to TRUE.
drop_auth(new_user = TRUE)

Run the code above in your browser using DataLab